Files
duocthu/.github/workflows/enable-api-gateway.yml
T

21 lines
623 B
YAML

name: Enable apiGateway (self-verifying)
# Turns apiGateway back on, then proves chat still answers by driving
# POST /api/chat. Reverts automatically if it does not -- chat outranks login.
on:
workflow_dispatch: {}
jobs:
enable:
runs-on: ubuntu-latest
permissions:
contents: read
steps:
- uses: actions/checkout@v4
- name: Enable, verify, self-revert on failure
env:
ARGOCD_PRACTICE_URL: ${{ secrets.ARGOCD_PRACTICE_URL }}
ARGOCD_PRACTICE_PASSWORD: ${{ secrets.ARGOCD_PRACTICE_PASSWORD }}
run: python3 .github/scripts/enable_api_gateway_verified.py