Reorder steps

This commit is contained in:
WuTofu 2022-08-31 22:52:15 +08:00 committed by GitHub
parent 198929f050
commit 68da9a862a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -18,16 +18,26 @@ jobs:
with:
python-version: "3.x"
- name: Run AutoBuild
- name: Set up Git config
run: |
cd ${{ github.workspace }}/AutoBuild
python pure_domain.py
git config --local user.email "action@github.com"
git config --local user.name "GitHub Action"
- id: files
uses: jitterbit/get-changed-files@v1
with:
format: "csv"
- name: Run AutoBuild
run: |
cd ${{ github.workspace }}/AutoBuild
python pure_domain.py
- name: Commit files modified by "AutoBuild" step
run: |
git add domains.txt
git commit -m "🤖 自動更新 domains.txt" || echo "[INFO] Fail to commit domains.txt, may not need to update the file?"
- name: Run AutoUpdateVerNum
run: |
cd ${{ github.workspace }}/AutoBuild
@ -36,14 +46,10 @@ jobs:
python auto_update_version.py ${added_modified_file}
done
- name: Commit files
- name: Commit files modified by "AutoUpdateVerNum" step
run: |
git config --local user.email "action@github.com"
git config --local user.name "GitHub Action"
git add domains.txt
git commit -m "🤖 自動更新 domains.txt" || echo "[INFO] Fail to commit domains.txt, may not need to update the file?"
git add *.txt
git commit -m "🤖 自動更新 版本號"
git commit -m "🤖 自動更新 版本號" || echo "[INFO] Fail to update version number, may not need to update at all?"
- name: Push changes
uses: ad-m/github-push-action@master