Skip to content

Commit 1dc2bd5

Browse files
committed
fix: support both 'latest' and version numbers in workflow test
- Test now accepts either 'latest' or actual version number format - Maintains backward compatibility while supporting dynamic versioning - Still ensures originalTag == latestTag for no-update scenario
1 parent daf17ae commit 1dc2bd5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/workflows/workflow-tests.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ jobs:
4040
- run: "[[ '${{ needs.updater-create-pr.outputs.prBranch }}' == 'deps/updater/tests/sentry-cli.properties' ]]"
4141

4242
- run: "[[ '${{ needs.updater-test-args.outputs.baseBranch }}' == '' ]]"
43-
- run: "[[ '${{ needs.updater-test-args.outputs.originalTag }}' =~ ^v?[0-9]+\\.[0-9]+\\.[0-9]+$ ]]"
43+
- run: "[[ '${{ needs.updater-test-args.outputs.originalTag }}' == 'latest' || '${{ needs.updater-test-args.outputs.originalTag }}' =~ ^v?[0-9]+\\.[0-9]+\\.[0-9]+$ ]]"
4444
- run: "[[ '${{ needs.updater-test-args.outputs.originalTag }}' == '${{ needs.updater-test-args.outputs.latestTag }}' ]]"
4545
- run: "[[ '${{ needs.updater-test-args.outputs.prUrl }}' == '' ]]"
4646
- run: "[[ '${{ needs.updater-test-args.outputs.prBranch }}' == '' ]]"

0 commit comments

Comments
 (0)