Skip to content

Commit

Permalink
Merge pull request #19 from aquaproj/fix/support-push
Browse files Browse the repository at this point in the history
fix: support push event
  • Loading branch information
suzuki-shunsuke authored Jan 20, 2023
2 parents c6ac4f2 + d920233 commit 5165a92
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,11 @@ runs:
if ! git diff --cached --exit-code ${CHECKSUM_FILE}; then
echo "::error file=${CHECKSUM_FILE}::${CHECKSUM_FILE} isn't latest. A commit is pushed automatically to update ${CHECKSUM_FILE}."
# https://github.com/int128/ghcp
ghcp commit -r "$GITHUB_REPOSITORY" -b "$GITHUB_HEAD_REF" \
branch=${GITHUB_HEAD_REF:-}
if [ -z "$branch" ]; then
branch=$GITHUB_REF_NAME
fi
ghcp commit -r "$GITHUB_REPOSITORY" -b "$branch" \
-m "chore(aqua): update $CHECKSUM_FILE" \
aqua-checksums.json
exit 1
Expand Down

0 comments on commit 5165a92

Please sign in to comment.