Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions .github/workflows/update-builder-toml.yml
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,20 @@ jobs:
with:
branch: "automation/builder-toml-update"

- name: Check if branch has commits
id: check-if-commits
run: |
# get the number of commits in the branch
commits=$(git rev-list --count automation/builder-toml-update)
if [ "$commits" -eq 0 ]; then
echo "No commits in branch automation/builder-toml-update"
echo "commits=0" >> "$GITHUB_OUTPUT"
else
echo "commits=$commits" >> "$GITHUB_OUTPUT"
fi

- name: Open Pull Request
if: ${{ steps.check-if-commits.outputs.commits == '0' }}
uses: paketo-buildpacks/github-config/actions/pull-request/open@main
with:
token: ${{ secrets.PAKETO_BOT_GITHUB_TOKEN }}
Expand Down
Loading