Skip to content

Commit

Permalink
fix ci-label and ci-changelog gha race condition (#1094)
Browse files Browse the repository at this point in the history
  • Loading branch information
bjlittle authored Sep 9, 2024
1 parent 0f6625e commit f66d2da
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 6 deletions.
1 change: 1 addition & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,3 +16,4 @@ updates:
labels:
- "new: pull request"
- "bot"
- "skip changelog"
1 change: 1 addition & 0 deletions .github/workflows/ci-changelog.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ jobs:
run:
shell: bash -l {0}

if: github.actor != 'pre-commit-ci[bot]'
steps:
- uses: actions/checkout@v4
with:
Expand Down
12 changes: 6 additions & 6 deletions .github/workflows/ci-label.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,12 @@ jobs:

- uses: actions/labeler@v5

- uses: actions-ecosystem/action-add-labels@18f1af5e3544586314bbe15c0273249c770b2daf
if: github.actor == 'dependabot[bot]' || github.actor == 'geovista-ci[bot]' || github.actor == 'pre-commit-ci[bot]'
with:
github_token: ${{ github.token }}
labels: 'skip changelog'

- uses: actions-ecosystem/action-add-labels@18f1af5e3544586314bbe15c0273249c770b2daf
if: startsWith(github.event.pull_request.head.ref, 'breaking-change') || startsWith(github.event.pull_request.head.ref, 'breaking') || startsWith(github.event.pull_request.head.ref, 'break')
with:
Expand Down Expand Up @@ -70,12 +76,6 @@ jobs:
github_token: ${{ github.token }}
labels: 'type: performance'

- uses: actions-ecosystem/action-add-labels@18f1af5e3544586314bbe15c0273249c770b2daf
if: github.actor == 'dependabot[bot]' || github.actor == 'geovista-ci[bot]' || github.actor == 'pre-commit-ci[bot]'
with:
github_token: ${{ github.token }}
labels: 'skip changelog'

- uses: actions-ecosystem/action-add-labels@18f1af5e3544586314bbe15c0273249c770b2daf
if: startsWith(github.event.pull_request.head.ref, 'merge-back') || startsWith(github.event.pull_request.head.ref, 'mb')
with:
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/ci-locks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,7 @@ jobs:
labels: |
new: pull request
bot
skip changelog
- name: "show pull-request"
if: steps.cpr.outputs.pull-request-number != ''
Expand Down
2 changes: 2 additions & 0 deletions changelog/1094.internal.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
Add the ``skip changelog`` label to ``dependabot`` and ``ci-locks`` :fab:`github`
Action generated pull-requests. (:user:`bjlittle`)

0 comments on commit f66d2da

Please sign in to comment.