Skip to content

Commit daf17ae

Browse files
committed
fix: update workflow test expectations for dynamic version
- Test now expects actual version number instead of hardcoded 'latest' - Verifies originalTag == latestTag to ensure no update is needed - Maintains expectation of empty outputs when no update occurs
1 parent f15a558 commit daf17ae

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/workflow-tests.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,8 @@ 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 }}' == 'latest' ]]"
44-
- run: "[[ '${{ needs.updater-test-args.outputs.latestTag }}' == 'latest' ]]"
43+
- run: "[[ '${{ needs.updater-test-args.outputs.originalTag }}' =~ ^v?[0-9]+\\.[0-9]+\\.[0-9]+$ ]]"
44+
- 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 }}' == '' ]]"
4747

0 commit comments

Comments
 (0)