Skip to content

Commit

Permalink
Merge pull request #78 from poissonconsulting/actions-sync-update
Browse files Browse the repository at this point in the history
ci: Fetch tags for fledge workflow to avoid unnecessary NEWS entries
  • Loading branch information
joethorley authored Dec 11, 2024
2 parents 1e5e3b3 + a3e99d2 commit cb47cad
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions .github/workflows/fledge.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ jobs:
- uses: actions/checkout@v4
with:
fetch-depth: 0
fetch-tags: true

- name: Configure Git identity
run: |
Expand Down Expand Up @@ -103,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 cb47cad

Please sign in to comment.