Skip to content

Commit

Permalink
semver-auto: remove labels first
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
EmilienM committed Sep 1, 2023
1 parent 05a1032 commit 8534afd
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions .github/workflows/semver-auto.yaml
Expand Up @@ -6,6 +6,16 @@ jobs:
go-apidiff:
runs-on: ubuntu-latest
steps:
- name: Remove the semver labels
uses: actions-ecosystem/action-remove-labels@2ce5d41b4b6aa8503e285553f75ed56e0a40bae0
with:
labels: |
semver:patch
semver:minor
semver:major
semver:unknown
github_token: ${{ secrets.GITHUB_TOKEN }}

- uses: actions/checkout@v3
with:
fetch-depth: 0
Expand All @@ -27,16 +37,6 @@ jobs:
with:
go-version: '1'

- name: Remove the semver label
uses: actions-ecosystem/action-remove-labels@2ce5d41b4b6aa8503e285553f75ed56e0a40bae0
with:
labels: |
semver:patch
semver:minor
semver:major
semver:unknown
github_token: ${{ secrets.GITHUB_TOKEN }}

- name: Checking Go API Compatibility
id: go-apidiff
uses: joelanford/go-apidiff@v0.7.0
Expand Down

0 comments on commit 8534afd

Please sign in to comment.