diff --git a/.github/workflows/label.yml b/.github/workflows/label.yml new file mode 100644 index 0000000..bfd6c4c --- /dev/null +++ b/.github/workflows/label.yml @@ -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 diff --git a/.github/workflows/pr.yml b/.github/workflows/pr.yml deleted file mode 100644 index 65c3af3..0000000 --- a/.github/workflows/pr.yml +++ /dev/null @@ -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