1 parent edc1f11 commit de8009aCopy full SHA for de8009a
1 file changed
.github/workflows/xivlauncher.yml
@@ -83,9 +83,15 @@ jobs:
83
run: |
84
rsync -ahvP "$GITHUB_WORKSPACE"/github/{PKGBUILD,XIVLauncher.desktop,xivlauncher-core} "$GITHUB_WORKSPACE"/aur/
85
rsync -ahvP "$GITHUB_WORKSPACE"/.SRCINFO "$GITHUB_WORKSPACE"/aur/.SRCINFO
86
+ - name: Check git status
87
+ id: gitstatus
88
+ working-directory: "${{ github.workspace }}/aur"
89
+ run: |
90
+ test -z "$(git status --porcelain)" && echo "clean=1" >> "$GITHUB_OUTPUT" || echo "clean=0" >> "$GITHUB_OUTPUT"
91
- name: Push
92
+ if: success() && steps.gitstatus.outputs.clean == '0'
93
94
- cd "$GITHUB_WORKSPACE"/aur
95
git config user.email "cent@spline.de"
96
git config user.name "cent"
97
git add --all
0 commit comments