diff --git a/.github/workflows/autoreview.yml b/.github/workflows/autoapprove.yml similarity index 67% rename from .github/workflows/autoreview.yml rename to .github/workflows/autoapprove.yml index 071176d..50ce9e0 100644 --- a/.github/workflows/autoreview.yml +++ b/.github/workflows/autoapprove.yml @@ -1,4 +1,4 @@ -name: "autoreview" +name: "autoapprove" on: pull_request_target: @@ -9,13 +9,13 @@ permissions: contents: write jobs: - dependabot: + autoapprove: runs-on: ubuntu-latest - if: | - github.actor == 'vtolstov' || - github.actor == 'dependabot[bot]' steps: - name: approve + uses: hmarr/auto-approve-action@v2 + if: github.actor == 'vtolstov' || github.actor == 'dependabot[bot]' + id: approve run: gh pr review --approve "$PR_URL" env: PR_URL: ${{github.event.pull_request.html_url}} diff --git a/.github/workflows/automerge.yml b/.github/workflows/automerge.yml index 64e1b7c..2f12b4f 100644 --- a/.github/workflows/automerge.yml +++ b/.github/workflows/automerge.yml @@ -9,10 +9,9 @@ permissions: contents: write jobs: - dependabot: + automerge: runs-on: ubuntu-latest - if: | - github.actor == 'dependabot[bot]' + if: github.actor == 'dependabot[bot]' steps: - name: metadata id: metadata @@ -20,6 +19,7 @@ jobs: with: github-token: "${{ secrets.TOKEN }}" - name: merge + id: merge if: ${{contains(steps.metadata.outputs.dependency-names, 'go.unistack.org')}} run: gh pr merge --auto --merge "$PR_URL" env: