Skip to content

Commit

Permalink
Cleanly handle no-op third-party rule Workflow runs
Browse files Browse the repository at this point in the history
Signed-off-by: egibs <[email protected]>
  • Loading branch information
egibs committed Nov 1, 2024
1 parent abe03f2 commit b9f6108
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: Retreive changes

Check failure on line 45 in .github/workflows/third-party.yaml

View workflow job for this annotation

GitHub Actions / Lint

[misspell] reported by reviewdog 🐶 "Retreive" is a misspelling of "Retrieve" Raw Output: ./.github/workflows/third-party.yaml:45:14: "Retreive" is a misspelling of "Retrieve"
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 b9f6108

Please sign in to comment.