Skip to content

Commit

Permalink
fix: support first and force push using auto mode (#35)
Browse files Browse the repository at this point in the history
  • Loading branch information
rlespinasse authored Dec 16, 2023
1 parent b23005f commit 0dd66de
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/runner.sh
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ elif [ "${INPUT_ACTION_MODE}" == "auto" ]; then
action_mode="reference"
elif [ -n "${GITHUB_HEAD_REF}" ]; then
action_mode="pull_request"
elif [ "${GITHUB_EVENT_NAME}" == "push" ] && [ -n "${INPUT_INTERNAL_PUSH_BEFORE}" ] && [ -n "${git_contains_output}" ]; then
elif [ "${GITHUB_EVENT_NAME}" == "push" ] && [ -n "${git_contains_output}" ] && [ "${INPUT_INTERNAL_PUSH_BEFORE}" != "0000000000000000000000000000000000000000" ] && [ "${INPUT_INTERNAL_PUSH_FORCED}" == "false" ]; then
action_mode="push"
else
action_mode="all"
Expand Down

0 comments on commit 0dd66de

Please sign in to comment.