Skip to content

Commit f3b7c69

Browse files
authored
Pull Request Labeler - Workaround sync-labels bug (#7431)
* 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
1 parent 2ef82c5 commit f3b7c69

File tree

3 files changed

+4
-6
lines changed

3 files changed

+4
-6
lines changed

.github/labeler.yml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -54,10 +54,6 @@ topic-indexing:
5454
- xarray/core/indexes.py
5555
- xarray/core/indexing.py
5656

57-
run-benchmark:
58-
- asv_bench/benchmarks/*
59-
- asv_bench/benchmarks/**/*
60-
6157
topic-performance:
6258
- asv_bench/benchmarks/*
6359
- asv_bench/benchmarks/**/*

.github/workflows/benchmarks.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ on:
77

88
jobs:
99
benchmark:
10-
if: ${{ contains( github.event.pull_request.labels.*.name, 'run-benchmark') && github.event_name == 'pull_request' || github.event_name == 'workflow_dispatch' }}
10+
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' }}
1111
name: Linux
1212
runs-on: ubuntu-20.04
1313
env:

.github/workflows/label-prs.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,6 @@ jobs:
99
- uses: actions/labeler@main
1010
with:
1111
repo-token: "${{ secrets.GITHUB_TOKEN }}"
12-
sync-labels: false
12+
# Workaround for sync-labels bug:
13+
# https://github.com/actions/labeler/issues/112
14+
sync-labels: ""

0 commit comments

Comments
 (0)