[pre-commit.ci] pre-commit autoupdate #135
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: test | |
on: | |
pull_request: | |
branches: [main] | |
workflow_dispatch: | |
jobs: | |
scan: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
ref: ${{ github.ref }} | |
- uses: actions/setup-python@v5 | |
with: | |
python-version: "3.10" | |
- name: Set up Git | |
run: | | |
git config --global user.name "Sun, Xuehao" | |
git config --global user.email "[email protected]" | |
git remote set-url origin https://XuehaoSun:"${{ secrets.MY_TOKEN }}"@github.com/XuehaoSun/test-azure.git | |
- name: Run script | |
run: | | |
bash test.sh | |
- name: Commit changes | |
run: | | |
git add . | |
git commit -m "Freeze requirements" | |
git push |