mirror of
https://github.com/Cockatrice/Magic-Spoiler.git
synced 2026-03-21 17:54:59 -05:00
Merge pull request #284 from Cockatrice/tooomm-patch-8
CI: No new data found notice
This commit is contained in:
commit
c8b5317293
2
.github/workflows/deploy.yml
vendored
2
.github/workflows/deploy.yml
vendored
|
|
@ -75,4 +75,4 @@ jobs:
|
|||
git commit -m "Deploy: $GITHUB_SHA"
|
||||
git push
|
||||
deploy_commit=`git rev-parse HEAD`
|
||||
echo "::notice::See deployment: $GITHUB_SERVER_URL/$GITHUB_REPOSITORY/commit/$deploy_commit"
|
||||
echo "::notice title=New data uploaded::See deployment: $GITHUB_SERVER_URL/$GITHUB_REPOSITORY/commit/$deploy_commit"
|
||||
|
|
|
|||
|
|
@ -643,11 +643,12 @@ def main() -> None:
|
|||
# Cleanup outdated stuff that's not necessary
|
||||
changed |= delete_old_files()
|
||||
|
||||
# Set output to deploy
|
||||
# Enable deployment on changes (used in CI)
|
||||
if changed:
|
||||
print("::set-output name=deploy::true")
|
||||
else:
|
||||
print("::set-output name=deploy::false")
|
||||
print("::notice title=No updates available::No new spoiler cards found for deployment")
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user