This commit is contained in:
azw
2024-12-15 18:16:54 +08:00
parent c0ae2d30ea
commit c9af5ce567
4 changed files with 56 additions and 0 deletions

View File

@@ -24,6 +24,20 @@ jobs:
mv ../az-vnr-patch/README .
git config --local user.email Cheshire[bot]@users.noreply.github.com
git config --local user.name 柴郡[bot]
- name: check diff
id: check_changes
run: |
ls -lh
cd VNR-Patch
ls -lh
if [ -z "$(git status --porcelain)" ]; then
echo "::set-output name=has_changes::false"
else
echo "::set-output name=has_changes::true"
fi
- name: push
if: ${{ steps.check_changes.outputs.has_changes == 'true' }}
run: |
git add .
git commit --allow-empty -m "$(date '+%Y-%m-%d %H:%M:%S')"
git push https://x-access-token:${{ secrets.AZW_PHY_ACCESS_TOKEN }}@github.com/Azurlane-HOI-mod/VNR-Patch.git