chore(security): cronjob for labels

This commit is contained in:
William Harrison authored and GitHub committed 2024-01-09 08:09:32 +08:00
1 parent bc0d4c3ca9
commit cde5c39bdf
2 files changed
+17 -23

No files matched your search

+17
View File
@@ -0,0 +1,17 @@
name: PR
on:
schedule:
- cron: "*/10 * * * *"
jobs:
label:
name: Labeler
runs-on: ubuntu-latest
steps:
- uses: docker://docker.io/ilyam8/periodic-pr-labeler:v0.1.1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GITHUB_REPOSITORY: ${{ github.repository }}
LABEL_MAPPINGS_FILE: .github/labeler.yml
-23
View File
@@ -1,23 +0,0 @@
name: PR
on:
- pull_request_target
concurrency:
group: ${{ github.ref }}-pr
cancel-in-progress: false
jobs:
label:
name: Label
runs-on: ubuntu-latest
permissions:
contents: read
pull-requests: write
steps:
- uses: actions/labeler@v4
with:
repo-token: "${{ secrets.BOT }}"
sync-labels: true