Skip to content

Commit 55b5430

Browse files
committed
fix: fix release names in order to conform to organizational tag rulesets.
1 parent 2140002 commit 55b5430

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

.github/workflows/release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,6 @@ permissions:
1010

1111
jobs:
1212
github-action:
13-
if: "!startsWith(github.event.name , 'v0.0.0-test-')" # Do not run for test releases created by test-include.yml and test-exclude.yml
13+
if: "!startsWith(github.event.name , 'v0.0.0-test.')" # Do not run for test releases created by test-include.yml and test-exclude.yml
1414
uses: cloudposse-github-actions/.github/.github/workflows/shared-release-branches.yml@main
1515
secrets: inherit

.github/workflows/test-exclude.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,13 +21,13 @@ jobs:
2121
run: echo "result=$(git rev-parse --short HEAD)" >> $GITHUB_OUTPUT
2222

2323
# Below is the only difference between test-include.yml (the positive counterpart of this workflow).
24-
# test-release.yml will not pick up this comment because include_regex will only match a 'v0.0.0-test-include' prefix.
25-
- run: gh release create v0.0.0-test-exclude.${{ steps.sha-short.outputs.result }} --prerelease --target ${{ github.sha }} --notes "Prerelease used for tests (will be automatically deleted)."
24+
# test-release.yml will not pick up this comment because include_regex will only match a 'v0.0.0-test.include' prefix.
25+
- run: gh release create v0.0.0-test.exclude.${{ steps.sha-short.outputs.result }} --prerelease --target ${{ github.sha }} --notes "Prerelease used for tests (will be automatically deleted)."
2626
env:
2727
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
2828

2929
outputs:
30-
release: v0.0.0-test-exclude.${{ steps.sha-short.outputs.result }}
30+
release: v0.0.0-test.exclude.${{ steps.sha-short.outputs.result }}
3131

3232
assert:
3333
runs-on: ubuntu-latest

.github/workflows/test-include.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,12 +20,12 @@ jobs:
2020
- id: sha-short
2121
run: echo "result=$(git rev-parse --short HEAD)" >> $GITHUB_OUTPUT
2222

23-
- run: gh release create v0.0.0-test-include.${{ steps.sha-short.outputs.result }} --prerelease --target ${{ github.sha }} --notes "Prerelease used for tests (will be automatically deleted)."
23+
- run: gh release create v0.0.0-test.include.${{ steps.sha-short.outputs.result }} --prerelease --target ${{ github.sha }} --notes "Prerelease used for tests (will be automatically deleted)."
2424
env:
2525
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
2626

2727
outputs:
28-
release: v0.0.0-test-include.${{ steps.sha-short.outputs.result }}
28+
release: v0.0.0-test.include.${{ steps.sha-short.outputs.result }}
2929

3030
assert:
3131
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)