Skip to content

Commit

Permalink
Update backup_queries.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
rschalkrce authored Nov 27, 2023
1 parent 9656c4b commit 74bdc07
Showing 1 changed file with 13 additions and 5 deletions.
18 changes: 13 additions & 5 deletions .github/workflows/backup_queries.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,18 @@ jobs:
OUTPUT_FOLDER: "${{ github.workspace }}/LDV"


- name: Check for changes
id: git_status
run: echo ::set-output name=status::$(git status -s)

- name: Commit and push changes
run: |
git config user.name "${{ github.actor }}"
git config user.email "${{ github.actor }}@users.noreply.github.com"
git add .
git commit -m "Automated update of sparql queries"
git push
if [ -n "${{ steps.git_status.outputs.status }}" ]; then
git config user.name "${{ github.actor }}"
git config user.email "${{ github.actor }}@users.noreply.github.com"
git add .
git commit -m "Automated update of sparql queries"
git push
else
echo "No changes to commit."
fi

0 comments on commit 74bdc07

Please sign in to comment.