Skip to content

Commit

Permalink
Merge pull request #1 from cdivitotawela/run-on-release
Browse files Browse the repository at this point in the history
Workflow trigger on release
  • Loading branch information
cdivitotawela authored Dec 7, 2023
2 parents 6a6a1de + 6d30042 commit b07a003
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions .github/workflows/release.yaml
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"

0 comments on commit b07a003

Please sign in to comment.