Skip to content

Commit 8e1e121

Browse files
committed
chore(github,workflows): edit configuration
Signed-off-by: Leonard Sheng Sheng Lee <[email protected]>
1 parent b6a6acc commit 8e1e121

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

.github/workflows/approve-dependabot-pull-request.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,22 @@
11
name: Approve Dependabot Pull Request
22
on: pull_request
33

4-
permissions:
5-
pull-requests: write
4+
permissions: {}
65

76
jobs:
87
dependabot:
98
runs-on: ubuntu-latest
9+
permissions:
10+
pull-requests: write
1011
if: ${{ github.actor == 'dependabot[bot]' }}
1112
steps:
1213
- name: Fetch Metadata
1314
id: metadata
14-
uses: dependabot/fetch-metadata@v2
15+
uses: dependabot/fetch-metadata@08eff52bf64351f401fb50d4972fa95b9f2c2d1b # v2.4.0
1516
with:
1617
github-token: "${{ secrets.GITHUB_TOKEN }}"
1718
- name: Approve Pull Request
19+
if: ${{ steps.metadata.outputs.update-type != 'version-update:semver-major' }}
1820
run: gh pr review --approve "${PR_URL}"
1921
env:
2022
PR_URL: ${{github.event.pull_request.html_url}}

0 commit comments

Comments
 (0)