Skip to content

Commit

Permalink
ci(gh-actions): use declarative-labels-sync-action
Browse files Browse the repository at this point in the history
Signed-off-by: Mateusz Urbanek <[email protected]>
  • Loading branch information
shanduur-akamai committed Nov 24, 2023
1 parent 9c26706 commit 772d70c
Showing 1 changed file with 6 additions and 16 deletions.
22 changes: 6 additions & 16 deletions .github/workflows/00-labels-sync.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,6 @@ on:
push:
branches:
- main
paths:
- .github/labels.yml

env:
OWNER: linode
REPO: ${{ github.event.repository.name }}

permissions: write-all

Expand 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 }}

0 comments on commit 772d70c

Please sign in to comment.