Skip to content

Commit

Permalink
Release dispatch test
Browse files Browse the repository at this point in the history
  • Loading branch information
PathogenDavid committed Sep 1, 2021
1 parent 697fd31 commit 5a94b44
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 0 deletions.
10 changes: 10 additions & 0 deletions .github/workflows/release-event-test.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,16 @@
name: Release Event Test
on:
release:
# https://docs.github.com/en/developers/webhooks-and-events/webhooks/webhook-events-and-payloads#release
# Seems `created` doesn't work here or it's not what I think it is
# -- Oh!
# > Note: The release event is not triggered for draft releases.
# Emphasis on ****release event****, I read this as meaning to be the "released" type.
#####################
# Edited works!
# Not sure how to trigger unpublished...
# Deleted works
# Not sure what prereleased/released are either (I would think they describe what I'd call "publish", but that's obviously a separate event)
types: [published, unpublished, created, edited, deleted, prereleased, released]
jobs:
do-release:
Expand Down
15 changes: 15 additions & 0 deletions .github/workflows/repository-dispatch-test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
name: Repository Dispatch Test
on:
repository_dispatch:
jobs:
test:
runs-on: ubuntu-latest
steps:
- name: Print info
run: |
echo "github.ref = ${{github.ref}}"
echo "github.event_name = ${{github.event_name}}"
echo "github.event.action = ${{github.event.action}}"
echo "github.event.release.tag_name = ${{github.event.release.tag_name}}"
echo "github.event.release.name = ${{github.event.release.name}}"
echo "github.event.release.upload_url = ${{github.event.release.upload_url}}"

0 comments on commit 5a94b44

Please sign in to comment.