Skip to content

Commit

Permalink
fix: manage ghcp in this action (#121)
Browse files Browse the repository at this point in the history
* fix: manage ghcp in this action

* fix: stop checking if ghcp is installed
  • Loading branch information
suzuki-shunsuke authored Nov 13, 2024
1 parent 11608b8 commit 4963338
Showing 1 changed file with 1 addition and 10 deletions.
11 changes: 1 addition & 10 deletions action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -68,9 +68,6 @@ runs:
run: |
set -eu
export AQUA_GLOBAL_CONFIG="$GITHUB_ACTION_PATH/aqua.yaml:${AQUA_GLOBAL_CONFIG:-}"
aqua -c "$GITHUB_ACTION_PATH/aqua.yaml" i -l
if [ -n "$WORKING_DIR" ]; then
CHECKSUM_FILE="$WORKING_DIR/$CHECKSUM_FILE"
fi
Expand All @@ -79,17 +76,11 @@ runs:
fi
echo "::error file=${CHECKSUM_FILE}::${CHECKSUM_FILE} isn't latest. A commit is pushed automatically to update ${CHECKSUM_FILE}."
if ! ghcp -v; then
echo "::error ::int128/ghcp isn't installed. To push a commit, ghcp is required."
exit 1
fi
# https://github.com/int128/ghcp
branch=${GITHUB_HEAD_REF:-}
if [ -z "$branch" ]; then
branch=$GITHUB_REF_NAME
fi
ghcp commit -r "$GITHUB_REPOSITORY" -b "$branch" \
aqua -c "$GITHUB_ACTION_PATH/aqua.yaml" exec -- ghcp commit -r "$GITHUB_REPOSITORY" -b "$branch" \
-m "chore(aqua): update $CHECKSUM_FILE" \
"$CHECKSUM_FILE"
exit 1
Expand Down

0 comments on commit 4963338

Please sign in to comment.