Skip to content

Commit 9006f00

Browse files
committed
Fix GH release dependency
Signed-off-by: Paolo Di Tommaso <[email protected]>
1 parent c19d296 commit 9006f00

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

.github/workflows/release.yml

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,12 @@
11
on:
2-
workflow_dispatch:
3-
4-
push:
2+
workflow_run:
3+
workflows: ["Gradle Build"]
4+
types: [completed]
55
branches: [ master ]
6-
paths: [ VERSION ]
76

87
jobs:
98
release:
10-
if: "contains(github.event.head_commit.message, '[release]')"
9+
if: github.event.workflow_run.conclusion == 'success' && contains(github.event.workflow_run.head_commit.message, '[release]')
1110
runs-on: ubuntu-latest
1211

1312
steps:
@@ -31,4 +30,4 @@ jobs:
3130
git config user.email "${GITHUB_ACTOR}@users.noreply.github.com"
3231
VERSION=$(cat VERSION)
3332
git tag -a v$VERSION -m "Release v$VERSION"
34-
git push origin v$VERSION
33+
git push origin v$VERSION

0 commit comments

Comments
 (0)