Skip to content

Commit

Permalink
fix #3
Browse files Browse the repository at this point in the history
  • Loading branch information
JAKAMI99 committed Oct 25, 2024
1 parent d041bc2 commit fd13892
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions .github/workflows/check_update.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ jobs:
- name: Compare Commits
id: compare
run: |
# Überprüfen, ob der letzte Commit anders ist als der gespeicherte Commit
if [ "$last_commit" != "$(cat last_commit_sha.txt 2>/dev/null)" ]; then
echo "New version available!"
exit 1 # Workflow fehlschlagen, wenn eine neue Version verfügbar ist
Expand All @@ -31,8 +32,12 @@ jobs:
fi
- name: Upload new commit SHA as artifact
if: success()
run: echo $last_commit > last_commit_sha.txt
if: success() # Nur ausführen, wenn der vorherige Schritt erfolgreich war
run: |
echo $last_commit > last_commit_sha.txt
- name: Upload Last Commit SHA
if: success() # Nur ausführen, wenn der vorherige Schritt erfolgreich war
uses: actions/upload-artifact@v3
with:
name: last-commit-sha
Expand Down

0 comments on commit fd13892

Please sign in to comment.