Skip to content

Commit 19760cc

Browse files
committed
WIP: Test update
1 parent d0d5196 commit 19760cc

File tree

2 files changed

+22
-11
lines changed

2 files changed

+22
-11
lines changed

.github/workflows/ci.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@ on:
55
push:
66
branches:
77
- main
8+
- update-release-workflow
9+
tags:
10+
- v*.*.*
811
pull_request:
912
workflow_dispatch:
1013

.github/workflows/release.yml

Lines changed: 19 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -2,23 +2,31 @@
22
name: Release
33

44
on:
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

914
jobs:
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-
uses: lewagon/[email protected]
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

0 commit comments

Comments
 (0)