From 1ffbcadad45f5ebad70b50514048b61d07943eb9 Mon Sep 17 00:00:00 2001 From: Harald Hoyer Date: Thu, 29 Apr 2021 14:52:15 +0200 Subject: [PATCH] ci: remove label cron job With the event called pull_request_target added to GitHub Actions, the cron job can be removed. See: https://www.jclem.net/posts/labeling-prs-on-public-github-repositories --- .github/workflows/labels.yml | 18 +++++++----------- 1 file changed, 7 insertions(+), 11 deletions(-) diff --git a/.github/workflows/labels.yml b/.github/workflows/labels.yml index 0e8d34d66..9fa7a9297 100644 --- a/.github/workflows/labels.yml +++ b/.github/workflows/labels.yml @@ -1,15 +1,11 @@ -name: Label the Pull Requests automatically via Cron +name: "Pull Request Labeler" -on: - schedule: - - cron: '*/15 * * * *' +on: pull_request_target jobs: - label: - runs-on: ubuntu-18.04 + triage: + 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@main + with: + repo-token: "${{ secrets.GITHUB_TOKEN }}" -- 2.47.3