Skip to content

armgit / Pake

Public Imported from GitHub
0

Turn any website into a lightweight desktop app with one command, on macOS, Windows and Linux.

ci: accept manual quality proof for npm hotfixes

Tw9310d3f8165861
diff --git a/.github/workflows/npm-publish.yml b/.github/workflows/npm-publish.yml
index 8273b5b4..6db03f60 100644
--- a/.github/workflows/npm-publish.yml
+++ b/.github/workflows/npm-publish.yml
@@ -60,7 +60,14 @@ jobs:
RUN_STATUS="$(jq -r '.status' <<<"$RUN_JSON")"
RUN_CONCLUSION="$(jq -r '.conclusion' <<<"$RUN_JSON")"
RUN_WORKFLOW_ID="$(jq -r '.workflowDatabaseId' <<<"$RUN_JSON")"
- if [ "$RUN_WORKFLOW_ID" != "$QUALITY_WORKFLOW_ID" ] || [ "$RUN_EVENT" != "push" ] || [ "$RUN_BRANCH" != "main" ] || [ "$RUN_SHA" != "$EXPECTED_SHA" ] || [ "$RUN_STATUS" != "completed" ] || [ "$RUN_CONCLUSION" != "success" ]; then
+ case "$RUN_EVENT" in
+ push|workflow_dispatch) ;;
+ *)
+ echo "Quality run ${QUALITY_RUN_ID} has unsupported event ${RUN_EVENT}: ${RUN_JSON}"
+ exit 1
+ ;;
+ esac
+ if [ "$RUN_WORKFLOW_ID" != "$QUALITY_WORKFLOW_ID" ] || [ "$RUN_BRANCH" != "main" ] || [ "$RUN_SHA" != "$EXPECTED_SHA" ] || [ "$RUN_STATUS" != "completed" ] || [ "$RUN_CONCLUSION" != "success" ]; then
echo "Quality run ${QUALITY_RUN_ID} does not prove ${EXPECTED_SHA}: ${RUN_JSON}"
exit 1
fi