File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1- name : Manual Dependabot Recreate
1+ name : Manual Dependabot
22
33on :
44 workflow_dispatch :
55
66jobs :
7- recreate_dependabot_prs :
7+ manage_dependabot_prs :
88 runs-on : ubuntu-latest
99 steps :
1010 - name : Checkout code
1111 uses : actions/checkout@v3
1212
13- - name : Close Dependabot PRs and delete branches
13+ - name : Close Dependabot PRs
1414 uses : actions/github-script@v6
1515 with :
1616 github-token : ${{secrets.GITHUB_TOKEN}}
@@ -30,12 +30,14 @@ jobs:
3030 pull_number: pr.number,
3131 state: 'closed'
3232 });
33-
34- // Delete the branch
35- await github.rest.git.deleteRef({
36- owner: context.repo.owner,
37- repo: context.repo.repo,
38- ref: 'heads/' + pr.head.ref
39- });
4033 }
4134 }
35+
36+ - name : Trigger Dependabot by modifying a file
37+ run : |
38+ echo "Dependabot trigger at $(date)" > .dependabot/trigger
39+ git config user.name "github-actions"
40+ git config user.email "github-actions@github.com"
41+ git add .dependabot/trigger
42+ git commit -m "Trigger Dependabot"
43+ git push
You can’t perform that action at this time.
0 commit comments