Merge pull request #284 from Cockatrice/tooomm-patch-8

CI: No new data found notice
This commit is contained in:
ebbit1q 2022-02-04 23:56:48 +01:00 committed by GitHub
commit c8b5317293
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 2 deletions

View File

@ -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"

View File

@ -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__":