Skip to content

Commit

Permalink
feat: support workflow_run trigger (#103)
Browse files Browse the repository at this point in the history
* feat: support `workflow_run` trigger

* Update action.yml
  • Loading branch information
fupengl committed Dec 1, 2022
1 parent 40d9657 commit 618d9fc
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion action.yml
@@ -1,5 +1,5 @@
# action.yml
name: 'Go Release Binaries'
name: 'Go Release Binaries Action'
author: 'Jay Zhang <wangyoucao577@gmail.com>'
description: 'Build and Release Go Binaries to GitHub Release Assets'
inputs:
Expand Down
2 changes: 2 additions & 0 deletions release.sh
Expand Up @@ -29,6 +29,8 @@ elif [ ${GITHUB_EVENT_NAME} == 'push' ]; then
echo "Event: ${GITHUB_EVENT_NAME}"
elif [ ${GITHUB_EVENT_NAME} == 'workflow_dispatch' ]; then
echo "Event: ${GITHUB_EVENT_NAME}"
elif [ ${GITHUB_EVENT_NAME} == 'workflow_run' ]; then
echo "Event: ${GITHUB_EVENT_NAME}"
else
echo "Unsupport event: ${GITHUB_EVENT_NAME}!"
exit 1
Expand Down

0 comments on commit 618d9fc

Please sign in to comment.