-
Notifications
You must be signed in to change notification settings - Fork 71
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Trigger Release with tag 'releaseTrigger'
This changes will trigger a build on master, when there is a tag 'releaseTrigger' created. It will notify our normal GitHub Actions, and retrigger a build. The payload will tell the our normal build, that this is a release, and it will trigger the build. Downside, this will only work in MASTER for now. If we want to support other branches, we need to use our combined brain power, how to retrieve a branch name from a git tag. It is not such a trivial problem.
- Loading branch information
Simon Schrottner
committed
May 2, 2020
1 parent
baf46cd
commit 171ee03
Showing
3 changed files
with
31 additions
and
48 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
# This workflow will build a Java project with Gradle | ||
# For more information see: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-gradle | ||
|
||
name: Tagged for Releasing | ||
|
||
on: | ||
create: | ||
tags: | ||
- 'releaseTrigger' | ||
|
||
jobs: | ||
deploy: | ||
runs-on: ubuntu-latest | ||
name: triggering release of master | ||
steps: | ||
- name: Repository Dispatch | ||
uses: peter-evans/repository-dispatch@v1 | ||
with: | ||
token: ${{ secrets.GH_WRITE_TOKEN }} | ||
event-type: triggerRelease | ||
client-payload: '{"release": true}' |
This file was deleted.
Oops, something went wrong.