From d32e29efda18a4ade4d333ba8cade46d53693f76 Mon Sep 17 00:00:00 2001 From: Maxim Schuwalow Date: Sun, 14 Jan 2024 17:44:26 +0100 Subject: [PATCH] switch labeler action --- .github/labeler.yml | 4 ++++ .github/pr-labeler.yml | 3 --- .github/workflows/autoupdate.yml | 20 -------------------- .github/workflows/pr-labeler.yml | 12 ++++-------- 4 files changed, 8 insertions(+), 31 deletions(-) create mode 100644 .github/labeler.yml delete mode 100644 .github/pr-labeler.yml delete mode 100644 .github/workflows/autoupdate.yml diff --git a/.github/labeler.yml b/.github/labeler.yml new file mode 100644 index 0000000..e1bfce4 --- /dev/null +++ b/.github/labeler.yml @@ -0,0 +1,4 @@ +version: 1 +labels: +- label: "automerge" + branch: "^update/*" diff --git a/.github/pr-labeler.yml b/.github/pr-labeler.yml deleted file mode 100644 index 053f8db..0000000 --- a/.github/pr-labeler.yml +++ /dev/null @@ -1,3 +0,0 @@ -automerge: 'update/*' -autoupdate: 'update/*' -dependency-update: 'update/*' diff --git a/.github/workflows/autoupdate.yml b/.github/workflows/autoupdate.yml deleted file mode 100644 index fa804da..0000000 --- a/.github/workflows/autoupdate.yml +++ /dev/null @@ -1,20 +0,0 @@ -name: Autoupdate PRs - -on: - push: {} - pull_request: - types: - - labeled - -jobs: - autoupdate: - runs-on: ubuntu-22.04 - permissions: - contents: write - steps: - - uses: docker://chinthakagodawita/autoupdate-action:v1 - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - PR_FILTER: labelled - PR_LABELS: autoupdate - MERGE_CONFLICT_ACTION: ignore diff --git a/.github/workflows/pr-labeler.yml b/.github/workflows/pr-labeler.yml index e76e485..3de42d1 100644 --- a/.github/workflows/pr-labeler.yml +++ b/.github/workflows/pr-labeler.yml @@ -1,10 +1,7 @@ name: Label PR on: - pull_request_target: - types: - - reopened - - opened + pull_request_target: {} jobs: pr-labeler: @@ -13,7 +10,6 @@ jobs: contents: read pull-requests: write steps: - - uses: TimonVS/pr-labeler-action@v4 - with: - repo-token: ${{ secrets.GITHUB_TOKEN }} - configuration-path: .github/pr-labeler.yml + - uses: srvaroa/labeler@v1 + env: + GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}"