Skip to content

Commit

Permalink
ci: Avoid failure in fledge workflow if no changes (#479)
Browse files Browse the repository at this point in the history
* ci: Avoid failure in fledge workflow if no changes

* chore: Auto-update from GitHub Actions

Run: https://github.com/r-dbi/RPostgres/actions/runs/12219704090
  • Loading branch information
krlmlr authored Dec 8, 2024
1 parent 24949b1 commit a2dd91d
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 6 deletions.
1 change: 0 additions & 1 deletion .github/dep-suggests-matrix.json

This file was deleted.

1 change: 0 additions & 1 deletion .github/versions-matrix.json

This file was deleted.

12 changes: 8 additions & 4 deletions .github/workflows/fledge.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -104,10 +104,14 @@ jobs:
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
set -x
gh pr create --base main --head fledge --fill-first
gh workflow run rcc -f ref=$(git rev-parse HEAD)
gh pr merge --squash --auto
set -ex
if [ -n "$(git diff main --numstat)" ]; then
gh pr create --base main --head fledge --fill-first
gh workflow run rcc -f ref=$(git rev-parse HEAD)
gh pr merge --squash --auto
else
echo "No changes."
fi
shell: bash

- name: Check release
Expand Down

0 comments on commit a2dd91d

Please sign in to comment.