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 df87ea4 commit 65d6072
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/publish-images.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,14 +49,17 @@ jobs:
if [[ "${{ github.event_name == 'push' && startsWith(steps.extract_branch.outputs.branch , 'deployment') }}" == "true" ]]; then
echo "push to deployment branch"
echo "push_detector=true" >> $GITHUB_OUTPUT
exit 0
else
if `gh pr view --json files --jq '[.files.[].path]'|jq -e 'map(. == ".github/workflows/publish-images.yml" or . == "docker-bake.hcl") |any'`; then
echo "push to development branch and changed docker-bake.hcl or .github/workflows/publish-images.yml"
echo "push_detector=true" >> $GITHUB_OUTPUT
exit 0
fi
fi
echo "push to development branch and not changed docker-bake.hcl or .github/workflows/publish-images.yml"
echo "push_detector=false" >> $GITHUB_OUTPUT
exit 0
env:
GH_TOKEN: ${{ github.token }}
Expand Down

0 comments on commit 65d6072

Please sign in to comment.