Skip to content

Commit

Permalink
fix: use fromJSON
Browse files Browse the repository at this point in the history
  • Loading branch information
suzuki-shunsuke committed Jan 22, 2023
1 parent f0d15ef commit beec9af
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ runs:

- shell: bash
working-directory: ${{inputs.working_directory}}
if: inputs.skip_push
if: fromJSON(inputs.skip_push)
run: |
if ! git diff --cached --exit-code ${CHECKSUM_FILE}; then
echo "::error file=${CHECKSUM_FILE}::${CHECKSUM_FILE} isn't latest."
Expand All @@ -51,7 +51,7 @@ runs:

- shell: bash
working-directory: ${{inputs.working_directory}}
if: "! inputs.skip_push"
if: "! fromJSON(inputs.skip_push)"
run: |
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}."
Expand Down

0 comments on commit beec9af

Please sign in to comment.