From d4647b72b587e28ca7305ecfba07fdbdf844950b Mon Sep 17 00:00:00 2001 From: Roxy <75404941+TealSeer@users.noreply.github.com> Date: Wed, 20 Nov 2024 14:58:12 -0500 Subject: [PATCH] Fix the PR labeler action (#2502) ## About The Pull Request Switch the PR labeler action to use GitHub's built-in action because the current one has been broken for some time now, changes the "Map Modification" label config to be "Map Edit". ## Why It's Good For The Game Broken workflow no good labeled PRs good ## Proof Of Testing https://github.com/TealSeer/Bubberstation/pull/1 (I had to merge the workflow change to master to get it to trigger which I then hard reset so my master wasn't fucked up, so you can't see the config change in this PR but you can see the action working properly) ## Changelog No in game changes --- .github/labeler.yml | 2 +- .github/workflows/labeler.yml | 12 +++++------- 2 files changed, 6 insertions(+), 8 deletions(-) diff --git a/.github/labeler.yml b/.github/labeler.yml index 276bb2f73ec..32b18d5e208 100644 --- a/.github/labeler.yml +++ b/.github/labeler.yml @@ -1,5 +1,5 @@ # Changes to anything in the _map subfolder -Map Modification: +Map Edit: - changed-files: - any-glob-to-any-file: '_maps/**' diff --git a/.github/workflows/labeler.yml b/.github/workflows/labeler.yml index 0d5585b7034..0137985e4ac 100644 --- a/.github/workflows/labeler.yml +++ b/.github/workflows/labeler.yml @@ -1,13 +1,11 @@ name: PR Labeling on: - schedule: - - cron: '*/5 * * * *' + - pull_request_target jobs: labeler: + permissions: + contents: read + pull-requests: write runs-on: ubuntu-latest steps: - - uses: paulfantom/periodic-labeler@master - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - GITHUB_REPOSITORY: ${{ github.repository }} - LABEL_MAPPINGS_FILE: .github/labeler.yml + - uses: actions/labeler@v5