Skip to content

Commit

Permalink
Update main.yml
Browse files Browse the repository at this point in the history
Check if diff
  • Loading branch information
jbdesbas authored Dec 20, 2023
1 parent d164bc4 commit 913b569
Showing 1 changed file with 11 additions and 4 deletions.
15 changes: 11 additions & 4 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 "[email protected]"
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

0 comments on commit 913b569

Please sign in to comment.