Bounded Stage v4 credential acceptance window / acceptance-window (push) Failing after 12s
31 lines
1.2 KiB
YAML
31 lines
1.2 KiB
YAML
name: Bounded Stage v4 credential acceptance window
|
|
on:
|
|
push:
|
|
branches:
|
|
- ci/v4-stage-acceptance-timeout-860324e
|
|
jobs:
|
|
acceptance-window:
|
|
if: github.ref == 'refs/heads/ci/v4-stage-acceptance-timeout-860324e'
|
|
runs-on: canina
|
|
timeout-minutes: 12
|
|
steps:
|
|
- name: Bounded Stage acceptance with guaranteed generation-fenced close
|
|
shell: bash
|
|
env:
|
|
BRANCH: ${{ github.ref_name }}
|
|
DEPLOY_SHA: ${{ github.sha }}
|
|
GITHUB_RUN_ATTEMPT: ${{ github.run_attempt }}
|
|
DEPLOY_KEY: ${{ secrets.DEPLOY_KEY }}
|
|
DEPLOY_KNOWN_HOSTS: ${{ secrets.DEPLOY_KNOWN_HOSTS }}
|
|
run: |
|
|
set -euo pipefail
|
|
set +x
|
|
[[ "$BRANCH" == ci/v4-stage-acceptance-timeout-860324e && "$DEPLOY_SHA" =~ ^[a-f0-9]{40}$ && "$GITHUB_RUN_ATTEMPT" == 1 ]] || exit 2
|
|
umask 077
|
|
scratch=$(mktemp -d)
|
|
trap 'rm -rf "$scratch"' EXIT
|
|
for file in ci-stage-acceptance.sh ci-stage-test-principal.sh stage-editorial-acceptance.py; do
|
|
wget --no-proxy -qO "$scratch/$file" "https://git.parsaaghayi.ir/parsa/canina/raw/commit/$DEPLOY_SHA/scripts/$file"
|
|
done
|
|
bash "$scratch/ci-stage-acceptance.sh"
|