Skip to content

Commit

Permalink
add condition to check version only on stable (#958)
Browse files Browse the repository at this point in the history
* add condition to check version only on stable

* set condition to checkVersion = true
  • Loading branch information
ingoKrOffice authored Nov 7, 2024
1 parent 75071e3 commit b316305
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 1 deletion.
6 changes: 6 additions & 0 deletions .github/workflows/build-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,11 @@ on:
type: string
required: false
default: ''
checkVersion:
description: "Check Version"
type: boolean
required: false
default: true

jobs:
build:
Expand All @@ -35,6 +40,7 @@ jobs:
deno-version: v1.x

- name: Check version
if: ${{ inputs.checkVersion == true }}
run: deno run --allow-read scripts/check-version-in-config-files.ts ${{ inputs.expectedVersion }}

- name: Setup PHP
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/development-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ jobs:
with:
expectedVersion: ${{ needs.get-versions.outputs.stableVersion }}
overrideVersion: ${{ needs.get-versions.outputs.developmentVersion }}
checkVersion: false

deploy:
name: Deploy development version
Expand Down Expand Up @@ -87,4 +88,4 @@ jobs:

- name: Commit to trunk
working-directory: /tmp/svn
run: svn commit -m "Import development version '${{ needs.get-versions.outputs.developmentVersion }}' to trunk" --non-interactive --username "${{ secrets.SVN_USER }}" --password "${{ secrets.SVN_PASSWORD }}"
run: svn commit -m "Import development version '${{ needs.get-versions.outputs.developmentVersion }}' to trunk" --non-interactive --username "${{ secrets.SVN_USER }}" --password "${{ secrets.SVN_PASSWORD }}"
1 change: 1 addition & 0 deletions .github/workflows/development-zip.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ jobs:
ref: ${{ github.event.pull_request.head.sha }}
expectedVersion: ${{ needs.get-versions.outputs.stableVersion }}
overrideVersion: ${{ needs.get-versions.outputs.developmentVersion }}
checkVersion: false

comment:
name: Pack a development zip and comment on the PR
Expand Down

0 comments on commit b316305

Please sign in to comment.