From dacd44a264bef401abfc1cdeab2fdd58a6b17ac2 Mon Sep 17 00:00:00 2001 From: Rui Chen Date: Tue, 5 Dec 2023 10:20:39 -0500 Subject: [PATCH] chore(actions): labeler v4 to v5 (#4013) Signed-off-by: Rui Chen --- .github/labeler.yml | 42 ++++++++++++++++++++++------------- .github/workflows/labeler.yml | 5 +---- 2 files changed, 27 insertions(+), 20 deletions(-) diff --git a/.github/labeler.yml b/.github/labeler.yml index 02dede4a1..8dedcc270 100644 --- a/.github/labeler.yml +++ b/.github/labeler.yml @@ -1,35 +1,45 @@ build: - - 'Dockerfile*' +- changed-files: + - any-glob-to-any-file: 'Dockerfile*' dependencies: - - 'yarn.lock' - - 'go.*' +- changed-files: + - any-glob-to-any-file: 'yarn.lock' + - any-glob-to-any-file: 'go.*' docs: - - 'runatlantis.io/**/*.md' - - 'README.md' +- changed-files: + - any-glob-to-any-file: 'runatlantis.io/**/*.md' + - any-glob-to-any-file: 'README.md' github-actions: - - '.github/**' +- changed-files: + - any-glob-to-any-file: '.github/**' go: - - '**/*.go' +- changed-files: + - any-glob-to-any-file: '**/*.go' provider/azuredevops: - - 'server/**/*azuredevops*.go' +- changed-files: + - any-glob-to-any-file: 'server/**/*azuredevops*.go' provider/bitbucket: - - 'server/**/*bitbucket*.go' - - 'server/events/vcs/bitbucketcloud/*.go' - - 'server/events/vcs/bitbucketserver/*.go' +- changed-files: + - any-glob-to-any-file: 'server/**/*bitbucket*.go' + - any-glob-to-any-file: 'server/events/vcs/bitbucketcloud/*.go' + - any-glob-to-any-file: 'server/events/vcs/bitbucketserver/*.go' provider/github: - - 'server/**/*github*.go' +- changed-files: + - any-glob-to-any-file: 'server/**/*github*.go' provider/gitlab: - - 'server/**/*gitlab*.go' +- changed-files: + - any-glob-to-any-file: 'server/**/*gitlab*.go' website: - - 'runatlantis.io/.vuepress/**/*' - - 'package.json' - - 'yarn.lock' +- changed-files: + - any-glob-to-any-file: 'runatlantis.io/.vuepress/**/*' + - any-glob-to-any-file: 'package.json' + - any-glob-to-any-file: 'yarn.lock' diff --git a/.github/workflows/labeler.yml b/.github/workflows/labeler.yml index 0ecde3041..aed089def 100644 --- a/.github/workflows/labeler.yml +++ b/.github/workflows/labeler.yml @@ -16,7 +16,4 @@ jobs: if: github.event.pull_request.draft == false runs-on: ubuntu-22.04 steps: - - uses: actions/labeler@v4 - with: - repo-token: "${{ secrets.GITHUB_TOKEN }}" - configuration-path: .github/labeler.yml + - uses: actions/labeler@v5