-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ci(gh-actions): use declarative-labels-sync-action
Signed-off-by: Mateusz Urbanek <[email protected]>
- Loading branch information
1 parent
9c26706
commit 772d70c
Showing
1 changed file
with
6 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,12 +7,6 @@ on: | |
push: | ||
branches: | ||
- main | ||
paths: | ||
- .github/labels.yml | ||
|
||
env: | ||
OWNER: linode | ||
REPO: ${{ github.event.repository.name }} | ||
|
||
permissions: write-all | ||
|
||
|
@@ -21,13 +15,9 @@ jobs: | |
name: Sync labels | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
with: | ||
fetch-depth: 0 | ||
- uses: actions/setup-go@v4 | ||
with: | ||
go-version: '1.20' | ||
- run: go install github.com/shanduur/labeler/cmd/[email protected] | ||
- run: labeler upload --owner ${{ env.OWNER }} --repo ${{ env.REPO }} ./.github/labels.yml | ||
env: | ||
LABELER_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
- uses: actions/checkout@v3 | ||
- uses: shanduur/declarative-labels-sync-action@main | ||
with: | ||
owner: linode | ||
repository: ${{ github.event.repository.name }} | ||
token: ${{ secrets.GITHUB_TOKEN }} |