From d4d0f275ade3a65578ec2013b208c3a676a20bb6 Mon Sep 17 00:00:00 2001 From: Laura Vuorenoja Date: Wed, 13 Sep 2023 13:29:52 +0300 Subject: [PATCH] Autoupdate GH actions. --- .github/dependabot.yml | 5 +++++ .github/labeler.yml | 5 ++++- .github/workflows/pr-comment.yml | 21 --------------------- .github/workflows/pr-target.yml | 11 +++++------ 4 files changed, 14 insertions(+), 28 deletions(-) delete mode 100644 .github/workflows/pr-comment.yml diff --git a/.github/dependabot.yml b/.github/dependabot.yml index 0d4a261..de83632 100644 --- a/.github/dependabot.yml +++ b/.github/dependabot.yml @@ -5,3 +5,8 @@ updates: schedule: interval: daily target-branch: "dev" + - package-ecosystem: github-actions + directory: / + schedule: + interval: daily + target-branch: 'dev' diff --git a/.github/labeler.yml b/.github/labeler.yml index 8603f87..ce37d8d 100644 --- a/.github/labeler.yml +++ b/.github/labeler.yml @@ -1,2 +1,5 @@ dev: - - any: ['!go.mod', '!go.sum'] +- '**' +- '**/.*' +- '**/.*/**' +- '**/.*/**/.*' diff --git a/.github/workflows/pr-comment.yml b/.github/workflows/pr-comment.yml deleted file mode 100644 index 6bb6231..0000000 --- a/.github/workflows/pr-comment.yml +++ /dev/null @@ -1,21 +0,0 @@ -name: "pr-comment" - -on: - pull_request: - types: [labeled] - -jobs: - comment: - if: ${{ github.event.label.name == 'dev' }} - runs-on: ubuntu-latest - permissions: - contents: read - pull-requests: write - steps: - - uses: actions/checkout@v3 - - name: Add comment to PR - run: gh pr comment $PR --body "PR created by $USER" - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - PR: ${{ github.event.pull_request.number }} - USER: ${{ github.event.pull_request.user.login }} \ No newline at end of file diff --git a/.github/workflows/pr-target.yml b/.github/workflows/pr-target.yml index 2e92005..faf8b5e 100644 --- a/.github/workflows/pr-target.yml +++ b/.github/workflows/pr-target.yml @@ -3,17 +3,16 @@ on: pull_request_target: jobs: - # label with "dev" to enable PR filtering label: permissions: - contents: read - pull-requests: write + contents: read + pull-requests: write runs-on: ubuntu-latest + if: ${{ github.event.pull_request.user.login != 'dependabot[bot]' }} steps: - - uses: actions/labeler@v4 - with: - repo-token: '${{ secrets.RELEASER_PAT }}' + - id: label-the-PR + uses: actions/labeler@v4 # automerge successful dependabot PRs dependabot: