Skip to content

Commit

Permalink
Pull Request Labeler - Workaround sync-labels bug (#7431)
Browse files Browse the repository at this point in the history
* PR labeler, workaround sync-labels bug

* Update label-prs.yml

* The bot gets it's own label then.

* Update label-prs.yml

* bot get's to change topic-performance, we humans get run-benchmarks
  • Loading branch information
Illviljan authored Jan 10, 2023
1 parent 2ef82c5 commit f3b7c69
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 6 deletions.
4 changes: 0 additions & 4 deletions .github/labeler.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,10 +54,6 @@ topic-indexing:
- xarray/core/indexes.py
- xarray/core/indexing.py

run-benchmark:
- asv_bench/benchmarks/*
- asv_bench/benchmarks/**/*

topic-performance:
- asv_bench/benchmarks/*
- asv_bench/benchmarks/**/*
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/benchmarks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ on:

jobs:
benchmark:
if: ${{ contains( github.event.pull_request.labels.*.name, 'run-benchmark') && github.event_name == 'pull_request' || github.event_name == 'workflow_dispatch' }}
if: ${{ contains( github.event.pull_request.labels.*.name, 'run-benchmark') && github.event_name == 'pull_request' || contains( github.event.pull_request.labels.*.name, 'topic-performance') && github.event_name == 'pull_request' || github.event_name == 'workflow_dispatch' }}
name: Linux
runs-on: ubuntu-20.04
env:
Expand Down
4 changes: 3 additions & 1 deletion .github/workflows/label-prs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,6 @@ jobs:
- uses: actions/labeler@main
with:
repo-token: "${{ secrets.GITHUB_TOKEN }}"
sync-labels: false
# Workaround for sync-labels bug:
# https://github.com/actions/labeler/issues/112
sync-labels: ""

0 comments on commit f3b7c69

Please sign in to comment.