mirror of
https://github.com/s4u/setup-maven-action.git
synced 2026-02-18 00:00:11 +08:00
File sync from s4u/.github - Use Tech Token for Auto Approve
This commit is contained in:
10
.github/workflows/auto-approve.yml
vendored
10
.github/workflows/auto-approve.yml
vendored
@ -3,10 +3,6 @@ name: Auto Approve
|
|||||||
on:
|
on:
|
||||||
pull_request_target
|
pull_request_target
|
||||||
|
|
||||||
permissions:
|
|
||||||
pull-requests: write
|
|
||||||
contents: write
|
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
auto-approve:
|
auto-approve:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
@ -17,7 +13,7 @@ jobs:
|
|||||||
id: dependabot-metadata
|
id: dependabot-metadata
|
||||||
uses: dependabot/fetch-metadata@v1.1.1
|
uses: dependabot/fetch-metadata@v1.1.1
|
||||||
with:
|
with:
|
||||||
github-token: "${{ secrets.GITHUB_TOKEN }}"
|
github-token: "${{ secrets.TECH_TOKEN }}"
|
||||||
|
|
||||||
- name: Enable auto-merge for Dependabot PRs
|
- name: Enable auto-merge for Dependabot PRs
|
||||||
if: >
|
if: >
|
||||||
@ -26,7 +22,7 @@ jobs:
|
|||||||
run: gh pr merge --auto --rebase "$PR_URL"
|
run: gh pr merge --auto --rebase "$PR_URL"
|
||||||
env:
|
env:
|
||||||
PR_URL: ${{github.event.pull_request.html_url}}
|
PR_URL: ${{github.event.pull_request.html_url}}
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
GITHUB_TOKEN: ${{ secrets.TECH_TOKEN }}
|
||||||
|
|
||||||
- name: Approve a PR
|
- name: Approve a PR
|
||||||
if: >
|
if: >
|
||||||
@ -35,4 +31,4 @@ jobs:
|
|||||||
run: gh pr review --approve "$PR_URL"
|
run: gh pr review --approve "$PR_URL"
|
||||||
env:
|
env:
|
||||||
PR_URL: ${{github.event.pull_request.html_url}}
|
PR_URL: ${{github.event.pull_request.html_url}}
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
GITHUB_TOKEN: ${{ secrets.TECH_TOKEN }}
|
||||||
|
|||||||
Reference in New Issue
Block a user