File tree Expand file tree Collapse file tree 2 files changed +22
-11
lines changed
Expand file tree Collapse file tree 2 files changed +22
-11
lines changed Original file line number Diff line number Diff line change 55 push :
66 branches :
77 - main
8+ - update-release-workflow
9+ tags :
10+ - v*.*.*
811 pull_request :
912 workflow_dispatch :
1013
Original file line number Diff line number Diff line change 22name : Release
33
44on :
5- push :
6- tags :
7- - v*.*.*
5+ workflow_run :
6+ workflows :
7+ - " CI"
8+ types :
9+ - completed
10+ branches :
11+ - main
12+ - update-release-workflow
813
914jobs :
1015 publish :
1116 name : Publish Client
1217 runs-on : ubuntu-latest
18+ if : ${{ github.event.workflow_run.conclusion == 'success' && github.ref_type == 'tag' }}
1319 steps :
14- - name : Wait for tests to succeed
15- 16- with :
17- ref : ' refs/heads/main'
18- running-workflow-name : ' Publish Client'
19- repo-token : ${{ secrets.GITHUB_TOKEN }}
20- wait-interval : 10
21- allowed-conclusions : success
20+ - name : Validate tag
21+ run : |
22+ TAG_NAME=${{ github.ref_name }}
23+ if [[ $TAG_NAME =~ ^v[0-9]+\.[0-9]+\.[0-9]+$ ]]; then
24+ echo "Tag $TAG_NAME is valid"
25+ else
26+ echo "Tag $TAG_NAME is invalid"
27+ # exit 1
28+ fi
29+ exit 1
2230 - name : Checkout Code
2331 uses : actions/checkout@v5
2432 - name : Set up JVM
You can’t perform that action at this time.
0 commit comments