Skip to content

Commit

Permalink
ci(workflow): add pr labeler (#97)
Browse files Browse the repository at this point in the history
Signed-off-by: Artur Troian <[email protected]>
  • Loading branch information
troian authored Dec 9, 2023
1 parent f788de5 commit 77fb3a3
Show file tree
Hide file tree
Showing 2 changed files with 52 additions and 0 deletions.
32 changes: 32 additions & 0 deletions .github/labeler.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
"C:go/node":
- changed-files:
- any-glob-to-any-file: go/node/**/*
"C:go/manifest":
- changed-files:
- any-glob-to-any-file: go/manifest/**/*
"C:go/testutil":
- changed-files:
- any-glob-to-any-file: go/testutil/**/*
"C:go/sdkutil":
- changed-files:
- any-glob-to-any-file: go/sdkutil/**/*
"C:proto":
- changed-files:
- any-glob-to-any-file: proto/akash
"C:proto/provider":
- changed-files:
- any-glob-to-any-file: proto/provider/**/*
"Type: Build":
- changed-files:
- any-glob-to-any-file: Makefile
- changed-files:
- any-glob-to-any-file: Dockerfile
- changed-files:
- any-glob-to-any-file: script/*
- changed-files:
- any-glob-to-any-file: make/*
- changed-files:
- any-glob-to-any-file: .goreleaser*
"Type: CI":
- changed-files:
- any-glob-to-any-file: .github/**/*
20 changes: 20 additions & 0 deletions .github/workflows/labeler.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name: github
on:
- pull_request_target

permissions:
contents: read

jobs:
labeler:
permissions:
contents: read # for actions/labeler to determine modified files
pull-requests: write # for actions/labeler to add labels to PRs
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/labeler@v5
with:
configuration-path: .github/labeler.yaml
repo-token: "${{ secrets.GITHUB_TOKEN }}"
dot: true

0 comments on commit 77fb3a3

Please sign in to comment.