1212jobs :
1313 enable-automerge :
1414 # Only run on Dependabot PRs
15- if : github.event.pull_request.user.login == 'dependabot[bot]'
15+ # if: github.event.pull_request.user.login == 'dependabot[bot]'
1616 runs-on : ubuntu-latest
1717 permissions :
1818 contents : write
@@ -25,15 +25,24 @@ jobs:
2525 with :
2626 github-token : ${{ secrets.GITHUB_TOKEN }}
2727
28- - name : Auto-approve Dependabot PR
29- if : steps.metadata.outputs.update-type == 'version-update:semver-patch'
30- uses : hmarr/auto-approve-action@v4
31- with :
32- github-token : ${{ secrets.GITHUB_TOKEN }}
28+ # - name: Auto-approve Dependabot PR
29+ # if: steps.metadata.outputs.update-type == 'version-update:semver-patch'
30+ # uses: hmarr/auto-approve-action@v4
31+ # with:
32+ # github-token: ${{ secrets.GITHUB_TOKEN }}
3333
34- - name : Enable auto-merge for Dependabot PRs
35- if : steps.metadata.outputs.update-type == 'version-update:semver-patch'
36- run : gh pr merge --auto --squash "$PR_URL"
37- env :
38- PR_URL : ${{ github.event.pull_request.html_url }}
39- GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
34+ # - name: Enable auto-merge for Dependabot PRs
35+ # if: steps.metadata.outputs.update-type == 'version-update:semver-patch'
36+ # run: gh pr merge --auto --squash "$PR_URL"
37+ # env:
38+ # PR_URL: ${{ github.event.pull_request.html_url }}
39+ # GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
40+
41+ - name : Slack Notification
42+ uses : slackapi/slack-github-action@v2.1.1
43+ with :
44+ webhook : ${{ secrets.DEPENDABOT_SLACK_WEBHOOK_URL }}
45+ webhook-type : incoming-webhook
46+ payload : |
47+ text : Hello from github
48+
0 commit comments