We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c19d296 commit 9006f00Copy full SHA for 9006f00
.github/workflows/release.yml
@@ -1,13 +1,12 @@
1
on:
2
- workflow_dispatch:
3
-
4
- push:
+ workflow_run:
+ workflows: ["Gradle Build"]
+ types: [completed]
5
branches: [ master ]
6
- paths: [ VERSION ]
7
8
jobs:
9
release:
10
- if: "contains(github.event.head_commit.message, '[release]')"
+ if: github.event.workflow_run.conclusion == 'success' && contains(github.event.workflow_run.head_commit.message, '[release]')
11
runs-on: ubuntu-latest
12
13
steps:
@@ -31,4 +30,4 @@ jobs:
31
30
git config user.email "${GITHUB_ACTOR}@users.noreply.github.com"
32
VERSION=$(cat VERSION)
33
git tag -a v$VERSION -m "Release v$VERSION"
34
- git push origin v$VERSION
+ git push origin v$VERSION
0 commit comments