Main's current tip
took 1s Raw logs
Set up job
Diffinery runner: job gate (Main's current tip) for codician/diffinery@8994af4b8478Runner: image diffinery-runner:2a3052eff7a82a483a7fde51, in ams19, WEUR, container cad177611f4170985c52103f544d5461110307aeae87e193d628c148f70f0905Workspace: /workspace/diffineryJob completed with conclusion: success
Deploy only main's current tip0s
##[group]Run set -euo pipefailif [ "$GITHUB_EVENT_NAME" = workflow_dispatch ] && [ "$REF" != refs/heads/main ]; then echo "::error::Deploy runs from main only (this run is on $REF)"; exit 1fitip=$(curl -fsS "$GITHUB_API_URL/repos/$GITHUB_REPOSITORY/branches/main" -H "Authorization: Bearer $GH_TOKEN" -H "Accept: application/vnd.github+json" | jq -r .commit.sha)if [ "$tip" = "$WANT" ]; then echo "deploy=true" >> "$GITHUB_OUTPUT" echo "deploying $WANT, main's tip"else # A later commit's CI run deploys it: a re-run of an old CI run deploys nothing. echo "deploy=false" >> "$GITHUB_OUTPUT" echo "::notice::not deploying $WANT: main is at $tip now, and that commit's own run deploys it"fienv: GH_TOKEN: *** WANT: 8994af4b8478912d2d3a5a9b16a2279fa6e42df4 REF: refs/heads/main##[endgroup]deploying 8994af4b8478912d2d3a5a9b16a2279fa6e42df4, main's tip
Outputs
- deploy
- true