mirror of
https://github.com/velocitatem/PHANTOM.git
synced 2026-05-31 16:43:36 +00:00
graceful fail
This commit is contained in:
10
.github/workflows/latex.yml
vendored
10
.github/workflows/latex.yml
vendored
@@ -9,6 +9,12 @@ on:
|
||||
paths:
|
||||
- 'paper/**'
|
||||
- '.github/**'
|
||||
workflow_dispatch:
|
||||
inputs:
|
||||
skip_mirrors:
|
||||
description: Skip Codex mirror generation (avoids API quota use)
|
||||
type: boolean
|
||||
default: false
|
||||
jobs:
|
||||
build:
|
||||
runs-on: ubuntu-latest
|
||||
@@ -24,8 +30,10 @@ jobs:
|
||||
- name: Prepare appendix code snapshot
|
||||
run: bash paper/concat_code.sh
|
||||
|
||||
# Repo variable SKIP_CODEX_MIRRORS=true skips on push/PR; workflow_dispatch can set skip_mirrors.
|
||||
- name: Generate mirrors with Codex
|
||||
if: ${{ env.OPENAI_API_KEY != '' }}
|
||||
if: ${{ env.OPENAI_API_KEY != '' && vars.SKIP_CODEX_MIRRORS != 'true' && (github.event_name != 'workflow_dispatch' || github.event.inputs.skip_mirrors != 'true') }}
|
||||
continue-on-error: true
|
||||
uses: openai/codex-action@v1
|
||||
with:
|
||||
openai-api-key: ${{ env.OPENAI_API_KEY }}
|
||||
|
||||
Reference in New Issue
Block a user