Skip to content

Commit fa40480

Browse files
authored
Create main.yml
1 parent 6c5c82c commit fa40480

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed

.github/workflows/main.yml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
name: Manual Dependabot Update
2+
3+
on:
4+
workflow_dispatch:
5+
6+
jobs:
7+
dependabot:
8+
runs-on: ubuntu-latest
9+
steps:
10+
- name: Checkout the repo
11+
uses: actions/checkout@v2
12+
with:
13+
ref: 'NVSHAS-8744' # 这里指定了始终检出 main 分支
14+
15+
- name: Setup repo with fake secret (trigger Dependabot)
16+
env:
17+
FAKE_SECRET: ${{ secrets.FAKE_SECRET }}
18+
run: |
19+
sed -i 's/FAKE_SECRET/'"$FAKE_SECRET"'/g' .github/dependabot.yml
20+
git config user.name 'github-actions[bot]'
21+
git config user.email 'github-actions[bot]@users.noreply.github.com'
22+
git commit -am "Trigger Dependabot" --allow-empty
23+
git push origin main

0 commit comments

Comments
 (0)