Skip to content

Commit 9ea9b98

Browse files
committed
Update other workflows to handle prereleases
1 parent a4894fc commit 9ea9b98

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

.github/workflows/release-build-zip-file.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -249,7 +249,7 @@ jobs:
249249
env:
250250
GH_TOKEN: ${{ github.token }}
251251
GH_REPO: ${{ github.repository }}
252-
IS_PRERELEASE: ${{ contains(steps.get_version.outputs.version, '-rc') }}
252+
IS_PRERELEASE: ${{ contains( steps.get_version.outputs.version, '-dev' ) || contains( steps.get_version.outputs.version, '-beta' ) || contains( steps.get_version.outputs.version, '-rc' ) }}
253253
run: |
254254
FLAGS=""
255255
if [ "$IS_PRERELEASE" = "true" ]; then

.github/workflows/release-new-release-published.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ jobs:
1111
# Jobs to run after a pre-release is published (triggered by the "prereleased" GH event).
1212
generate-release-commits-and-contributors:
1313
name: 'Call release commits and contributors workflow'
14-
if: ${{ github.event.action == 'prereleased' }}
14+
if: ${{ github.event.action == 'prereleased' && ! ( contains( inputs.release_tag_name, '-dev' ) || contains( inputs.release_tag_name, '-rc' ) ) }}
1515
uses: woocommerce/woocommerce/.github/workflows/release-commits-and-contributors.yml@trunk
1616
with:
1717
version: ${{ inputs.release_tag_name }}
@@ -21,7 +21,7 @@ jobs:
2121
notify-release-published:
2222
name: 'Notify in Slack when a new (pre)release is published'
2323
runs-on: ${{ ( github.repository == 'woocommerce/woocommerce' && 'blacksmith-2vcpu-ubuntu-2404' ) || 'ubuntu-latest' }}
24-
if: ${{ github.event.action == 'published' }}
24+
if: ${{ github.event.action == 'published' && ! ( contains( inputs.release_tag_name, '-dev' ) || contains( inputs.release_tag_name, '-rc' ) ) }}
2525
steps:
2626
- name: 'Notify to release channel'
2727
uses: archive/github-actions-slack@a62d71a4ea93e68cbdc37581166b0298bea512e9 # v 2.10.0
@@ -36,7 +36,7 @@ jobs:
3636
update-global-changelog:
3737
name: 'Update changelog.txt after any stable release'
3838
runs-on: ${{ ( github.repository == 'woocommerce/woocommerce' && 'blacksmith-2vcpu-ubuntu-2404' ) || 'ubuntu-latest' }}
39-
if: ${{ github.event.action == 'published' && ! contains( inputs.release_tag_name, '-rc' ) }}
39+
if: ${{ github.event.action == 'published' && ! ( contains( inputs.release_tag_name, '-dev' ) || contains( inputs.release_tag_name, '-beta' ) || contains( inputs.release_tag_name, '-rc' ) ) }}
4040
steps:
4141
- name: 'Fetch release readme.txt'
4242
env:

0 commit comments

Comments
 (0)