Files
canina/.gitea/workflows/stage-v4-acceptance.yml
T
devops f778495bb4
Bounded Stage v4 credential acceptance window / acceptance-window (push) Successful in 8m9s
feat(ci): add single-branch bounded Stage credential window
2026-10-24 13:19:17 +00:00

31 lines
1.1 KiB
YAML

name: Bounded Stage v4 credential acceptance window
on:
push:
branches:
- ci/v4-stage-acceptance
jobs:
acceptance-window:
if: github.ref == 'refs/heads/ci/v4-stage-acceptance'
runs-on: canina
timeout-minutes: 12
steps:
- name: Open fixed Stage session and finally close (no model calls)
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 && "$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; 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"