更新 .gitea/workflows/sync.yml
This commit is contained in:
@@ -27,7 +27,19 @@ jobs:
|
||||
ls -lh
|
||||
cp -r /home/steam/Steam/steamapps/workshop/content/394360/3014768049 src
|
||||
rm -rf src/.git
|
||||
- name: check diff
|
||||
id: check_changes
|
||||
run: |
|
||||
ls -lh
|
||||
cd azurlane-tj
|
||||
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: commit and push
|
||||
if: ${{ steps.check_changes.outputs.has_changes == 'true' }}
|
||||
run: |
|
||||
ls -lh
|
||||
cd az-more-slots
|
||||
|
||||
Reference in New Issue
Block a user