Update main.yml #7
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
on: push | |
jobs: | |
unzip: | |
runs-on: ubuntu-latest | |
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: Configure Git | |
run: | | |
git config --local user.email "[email protected]" | |
git config --local user.name "GitHub Action" | |
- name: Add changes to the index | |
run: git add ./uncompressed | |
- name: Check for changes | |
run: | | |
git diff --exit-code || git commit -am "Decompress QGZ" | |
- name: Push changes | |
run: git push |