Skip to content

Commit 8534afd

Browse files
committed
semver-auto: remove labels first
Change the tasks order, so we clean semver labels first. This avoids the case when the rebase failed, and we still have the old label, and also the `semver:unknown`, which is confusing.
1 parent 05a1032 commit 8534afd

1 file changed

Lines changed: 10 additions & 10 deletions

File tree

.github/workflows/semver-auto.yaml

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,16 @@ jobs:
66
go-apidiff:
77
runs-on: ubuntu-latest
88
steps:
9+
- name: Remove the semver labels
10+
uses: actions-ecosystem/action-remove-labels@2ce5d41b4b6aa8503e285553f75ed56e0a40bae0
11+
with:
12+
labels: |
13+
semver:patch
14+
semver:minor
15+
semver:major
16+
semver:unknown
17+
github_token: ${{ secrets.GITHUB_TOKEN }}
18+
919
- uses: actions/checkout@v3
1020
with:
1121
fetch-depth: 0
@@ -27,16 +37,6 @@ jobs:
2737
with:
2838
go-version: '1'
2939

30-
- name: Remove the semver label
31-
uses: actions-ecosystem/action-remove-labels@2ce5d41b4b6aa8503e285553f75ed56e0a40bae0
32-
with:
33-
labels: |
34-
semver:patch
35-
semver:minor
36-
semver:major
37-
semver:unknown
38-
github_token: ${{ secrets.GITHUB_TOKEN }}
39-
4040
- name: Checking Go API Compatibility
4141
id: go-apidiff
4242
uses: joelanford/go-apidiff@v0.7.0

0 commit comments

Comments
 (0)