Manual Dependabot Update #2
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Manual Dependabot Update | |
on: | |
workflow_dispatch: | |
jobs: | |
dependabot: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout the repo | |
uses: actions/checkout@v2 | |
with: | |
ref: 'NVSHAS-8744' # 这里指定了始终检出 main 分支 | |
- name: Setup repo with fake secret (trigger Dependabot) | |
env: | |
FAKE_SECRET: ${{ secrets.FAKE_SECRET }} | |
run: | | |
sed -i 's/FAKE_SECRET/'"$FAKE_SECRET"'/g' .github/dependabot.yml | |
git config user.name 'github-actions[bot]' | |
git config user.email 'github-actions[bot]@users.noreply.github.com' | |
git commit -am "Trigger Dependabot" --allow-empty | |
git push origin main |