diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index ece3161..e04b643 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -6,14 +6,21 @@ jobs: steps: - name: Checkout repository uses: actions/checkout@v2 + - name: Clear destination directory run: rm -rf ./uncompressed/* + - name: Extract files from QGZ run: 7z x geo2france.qgz -o./uncompressed - - name: Commit changes + + - name: Configure Git run: | git config --local user.email "actions@github.com" git config --local user.name "GitHub Action" - git add ./uncompressed - git commit -m "Decompress file" - git push + + - name: Check for changes + run: | + git diff --exit-code || git commit -am "Decompress file" + + - name: Push changes + run: git push