]> git.ipfire.org Git - thirdparty/dracut.git/commitdiff
ci: remove label cron job
authorHarald Hoyer <harald@redhat.com>
Thu, 29 Apr 2021 12:52:15 +0000 (14:52 +0200)
committerHarald Hoyer <harald@hoyer.xyz>
Thu, 29 Apr 2021 12:57:44 +0000 (14:57 +0200)
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

index 0e8d34d666ddfccb8bd929fdc299f4799ebe3417..9fa7a92972bef9d43659fffe29e91bf7150c658f 100644 (file)
@@ -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 }}"