Skip to content

Commit

Permalink
fix: remove-label job uses the wrong repo (#5415)
Browse files Browse the repository at this point in the history
* fix: remove label gets passed the wrong repo information

* add cithm too

* use github event

* add permissions

* use list form
  • Loading branch information
gurgunday committed Apr 21, 2024
1 parent 35a6b99 commit c47b033
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 6 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/benchmark-parser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,8 @@ jobs:
echo 'EOF' >> $GITHUB_OUTPUT
output-benchmark:
needs: [benchmark]
needs:
- benchmark
runs-on: ubuntu-latest
permissions:
pull-requests: write
Expand Down
7 changes: 5 additions & 2 deletions .github/workflows/benchmark.yml
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,8 @@ jobs:
echo 'EOF' >> $GITHUB_OUTPUT
output-benchmark:
needs: [benchmark]
needs:
- benchmark
runs-on: ubuntu-latest
permissions:
pull-requests: write
Expand Down Expand Up @@ -96,13 +97,15 @@ jobs:
- benchmark
- output-benchmark
runs-on: ubuntu-latest
permissions:
pull-requests: write
steps:
- name: Remove benchmark label
uses: octokit/request-action@v2.x
id: remove-label
with:
route: DELETE /repos/{repo}/issues/{issue_number}/labels/{name}
repo: ${{ github.event.pull_request.head.repo.full_name }}
repo: ${{ github.repository }}
issue_number: ${{ github.event.pull_request.number }}
name: benchmark
env:
Expand Down
6 changes: 4 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -87,13 +87,15 @@ jobs:
npm run lint
coverage-nix:
needs: lint
needs:
- lint
permissions:
contents: read
uses: ./.github/workflows/coverage-nix.yml

coverage-win:
needs: lint
needs:
- lint
permissions:
contents: read
uses: ./.github/workflows/coverage-win.yml
Expand Down
4 changes: 3 additions & 1 deletion .github/workflows/citgm.yml
Original file line number Diff line number Diff line change
Expand Up @@ -90,13 +90,15 @@ jobs:
- core-plugins
continue-on-error: true
runs-on: ubuntu-latest
permissions:
pull-requests: write
steps:
- name: Remove citgm-core-plugins label
uses: octokit/request-action@v2.x
id: remove-label
with:
route: DELETE /repos/{repo}/issues/{issue_number}/labels/{name}
repo: ${{ github.event.pull_request.head.repo.full_name }}
repo: ${{ github.repository }}
issue_number: ${{ github.event.pull_request.number }}
name: citgm-core-plugins
env:
Expand Down

0 comments on commit c47b033

Please sign in to comment.