File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 2222 path : tests/workflow-args.sh
2323 name : Workflow args test script
2424 runs-on : macos-latest
25+ pattern : ' .*'
2526 _workflow_version : ${{ github.sha }}
2627 secrets :
2728 api-token : ${{ github.token }}
3940 - run : " [[ '${{ needs.create-pr.outputs.prBranch }}' == 'deps/tests/sentry-cli.properties' ]]"
4041
4142 - run : " [[ '${{ needs.test-args.outputs.baseBranch }}' == '' ]]"
42- - run : " [[ '${{ needs.test-args.outputs.originalTag }}' == 'v2 ' ]]"
43- - run : " [[ '${{ needs.test-args.outputs.latestTag }}' == 'v2 ' ]]"
43+ - run : " [[ '${{ needs.test-args.outputs.originalTag }}' == 'latest ' ]]"
44+ - run : " [[ '${{ needs.test-args.outputs.latestTag }}' == 'latest ' ]]"
4445 - run : " [[ '${{ needs.test-args.outputs.prUrl }}' == '' ]]"
4546 - run : " [[ '${{ needs.test-args.outputs.prBranch }}' == '' ]]"
Original file line number Diff line number Diff line change @@ -18,7 +18,11 @@ if (-not (Test-Path $testDir))
1818}
1919
2020$repoUrl = ' https://github.com/getsentry/github-workflows'
21- $currentVersion = ' v2' # Note: this will change once there's a new tag in this repo
21+
22+ # Find the latest latest version in this repo. We're intentionally using different code than `update-dependency.ps1`
23+ # script uses to be able to catch issues, if any.
24+ $currentVersion = (git - c ' versionsort.suffix=-' ls- remote -- tags -- sort= ' v:refname' $repoUrl `
25+ | Select-Object - Last 1 | Select-String - Pattern ' refs/tags/(.*)$' ).Matches.Groups[1 ].Value
2226
2327RunTest " properties-file" {
2428 $testFile = " $testDir /test.properties"
Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ set -euo pipefail
55
66case $1 in
77get-version)
8- echo " v2 "
8+ echo " latest "
99
1010 # Run actual tests here.
1111 if [[ " $( uname) " != ' Darwin' ]]; then
You can’t perform that action at this time.
0 commit comments