Skip to content

Commit

Permalink
Cleanly handle no-op third-party rule Workflow runs (chainguard-dev#560)
Browse files Browse the repository at this point in the history
Signed-off-by: egibs <[email protected]>
  • Loading branch information
egibs authored Nov 1, 2024
1 parent abe03f2 commit 917d083
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .github/workflows/third-party.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,12 @@ jobs:
- name: Run make refresh-test-data
run: |
make refresh-sample-testdata
- name: Retrieve changes
id: check
run: |
echo "CHANGES=$(git status -s | wc -l)" >> $GITHUB_OUTPUT
- name: Add and commit changes
if: ${{ steps.check.outputs.CHANGES }} > 0
id: commit
run: |
DATE=$(date +%F)
Expand All @@ -54,6 +59,7 @@ jobs:
echo "DATE=${DATE}" >> $GITHUB_OUTPUT
- name: Create Pull Request
if: ${{ steps.check.outputs.CHANGES }} > 0
env:
GH_TOKEN: ${{ steps.octo-sts.outputs.token }}
run: |
Expand Down

0 comments on commit 917d083

Please sign in to comment.