Skip to content

Commit

Permalink
辛い
Browse files Browse the repository at this point in the history
  • Loading branch information
Azuki-bar committed Nov 9, 2023
1 parent 9c560db commit bb7fd08
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion .github/workflows/publish-images.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,10 +45,14 @@ jobs:
- name: push detector
id: push_detector
run: |
if [[ "${{ github.event_name == 'push' && startsWith(steps.extract_branch.outputs.branch , 'deployment') }}" == "true" ]]; then
echo "push_detector=true" >> $GITHUB_OUTPUT
else
if `gh pr view --json files --jq '[.files.[].path]'|jq -e ' contains([".github/workflows/publish-images.yml", "docker-bake.hcl"])'`; then
FILES_TO_CHECK=(".github/workflows/publish-images.yml" "docker-bake.hcl")
CHECK_COMMAND=$(printf ' . == "%s" or' "${FILES_TO_CHECK[@]}")
CHECK_COMMAND=${CHECK_COMMAND%or}
if `gh pr view --json files --jq '[.files.[].path]'|jq -e 'map(${CHECK_COMMAND})) |any'`; then
echo "push_detector=true" >> $GITHUB_OUTPUT
fi
fi
Expand Down

0 comments on commit bb7fd08

Please sign in to comment.