-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1 from cdivitotawela/run-on-release
Workflow trigger on release
- Loading branch information
Showing
1 changed file
with
24 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
# Example trigger on release | ||
name: release | ||
|
||
on: | ||
# https://docs.github.com/en/actions/using-workflows/events-that-trigger-workflows#release | ||
release: | ||
types: [published] | ||
push: | ||
branch: run-on-release | ||
|
||
|
||
jobs: | ||
release: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Event triggerred | ||
run: echo "Event Name [${{ github.event_name }}]" | ||
|
||
- name: Default branch | ||
run: echo "Default branch [${{ github.event.repository.default_branch }}]" | ||
|
||
- name: Run on release | ||
if: ${{ github.event_name == 'release' }} | ||
run: echo "Run this step on release" |