Skip to content

Commit 2c31c00

Browse files
committed
Update manual-dependabot.yml
1 parent 1cbb29a commit 2c31c00

1 file changed

Lines changed: 12 additions & 10 deletions

File tree

.github/workflows/manual-dependabot.yml

Lines changed: 12 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
1-
name: Manual Dependabot Recreate
1+
name: Manual Dependabot
22

33
on:
44
workflow_dispatch:
55

66
jobs:
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

0 commit comments

Comments
 (0)