Skip to content

Commit

Permalink
minor
Browse files Browse the repository at this point in the history
  • Loading branch information
JAKAMI99 committed Oct 25, 2024
1 parent fd13892 commit ec83201
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/check_update.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,21 +23,21 @@ 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
exit 1 # Fail workflow when current version is not latest
else
echo "No new version."
fi
- name: Upload new commit SHA as artifact
if: success() # Nur ausführen, wenn der vorherige Schritt erfolgreich war
if: success()
run: |
echo $last_commit > last_commit_sha.txt
- name: Upload Last Commit SHA
if: success() # Nur ausführen, wenn der vorherige Schritt erfolgreich war
if: success()
uses: actions/upload-artifact@v3
with:
name: last-commit-sha
Expand Down

0 comments on commit ec83201

Please sign in to comment.