ci: require manual GitHub Actions runs
This commit is contained in:
@@ -1,10 +1,7 @@
|
||||
name: Jyotish Skill CI
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: [main]
|
||||
pull_request:
|
||||
branches: [main]
|
||||
workflow_dispatch:
|
||||
|
||||
jobs:
|
||||
validate:
|
||||
|
||||
@@ -1,9 +1,6 @@
|
||||
name: Deploy production
|
||||
|
||||
on:
|
||||
workflow_run:
|
||||
workflows: ["Jyotish Skill CI"]
|
||||
types: [completed]
|
||||
workflow_dispatch:
|
||||
|
||||
permissions:
|
||||
@@ -21,11 +18,6 @@ env:
|
||||
|
||||
jobs:
|
||||
deploy:
|
||||
if: >-
|
||||
github.event_name == 'workflow_dispatch' ||
|
||||
(github.event.workflow_run.conclusion == 'success' &&
|
||||
github.event.workflow_run.event == 'push' &&
|
||||
github.event.workflow_run.head_branch == 'main')
|
||||
runs-on: ubuntu-latest
|
||||
timeout-minutes: 30
|
||||
|
||||
@@ -33,7 +25,7 @@ jobs:
|
||||
- name: Checkout tested revision
|
||||
uses: actions/checkout@v4
|
||||
with:
|
||||
ref: ${{ github.event.workflow_run.head_sha || github.sha }}
|
||||
ref: ${{ github.sha }}
|
||||
|
||||
- name: Reject stale CI revision
|
||||
id: revision
|
||||
@@ -61,7 +53,7 @@ jobs:
|
||||
- name: Sync and rebuild
|
||||
if: steps.revision.outputs.deploy == 'true'
|
||||
env:
|
||||
DEPLOY_GIT_SHA: ${{ github.event.workflow_run.head_sha || github.sha }}
|
||||
DEPLOY_GIT_SHA: ${{ github.sha }}
|
||||
run: |
|
||||
SSH_OPTIONS="-i $HOME/.ssh/jyotisha-production -p $DEPLOY_PORT -o BatchMode=yes -o IdentitiesOnly=yes -o ServerAliveInterval=30 -o ServerAliveCountMax=20"
|
||||
RSYNC_SSH="ssh $SSH_OPTIONS"
|
||||
|
||||
@@ -1,9 +1,6 @@
|
||||
name: Publish to PyPI
|
||||
|
||||
on:
|
||||
push:
|
||||
tags:
|
||||
- 'v*'
|
||||
workflow_dispatch:
|
||||
|
||||
permissions:
|
||||
|
||||
@@ -2,13 +2,6 @@ name: Jyotish Release Quality Gate
|
||||
|
||||
on:
|
||||
workflow_dispatch:
|
||||
pull_request:
|
||||
branches: [main]
|
||||
paths:
|
||||
- '.github/workflows/release-quality-gate.yml'
|
||||
- 'frontend/**'
|
||||
- 'scripts/run_quality_gate.py'
|
||||
- 'tests/**'
|
||||
|
||||
jobs:
|
||||
release-quality-gate:
|
||||
|
||||
@@ -1,10 +1,7 @@
|
||||
name: Jyotish Skill Tests
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: [main]
|
||||
pull_request:
|
||||
branches: [main]
|
||||
workflow_dispatch:
|
||||
|
||||
jobs:
|
||||
test:
|
||||
|
||||
Reference in New Issue
Block a user