Skip to content

Refresh Release Delta #107

Refresh Release Delta

Refresh Release Delta #107

name: Refresh Release Delta
permissions:
contents: write
on:
schedule:
- cron: "17 * * * *"
workflow_dispatch:
concurrency:
group: ${{ github.workflow }}
cancel-in-progress: true
jobs:
refresh:
name: Refresh Codex release checkpoints
runs-on: ubuntu-latest
timeout-minutes: 30
env:
GITHUB_TOKEN: ${{ github.token }}
steps:
- name: Fetch latest code
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
ref: main
fetch-depth: 0
- name: Set up Node
uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6.4.0
with:
node-version: 22
cache: npm
cache-dependency-path: site/package-lock.json
- name: Install site dependencies
working-directory: site
run: npm ci
- name: Refresh release delta
run: |
cargo run -p decodex --bin decodex -- radar refresh-release-delta \
--repo openai/codex \
--signals-dir site/src/content/signals \
--out site/src/content/release-deltas/openai-codex-latest.json
- name: Detect content changes
id: changes
run: |
if [ -z "$(git status --porcelain -- \
site/src/content/release-deltas/openai-codex-latest.json)" ]; then
echo "changed=false" >> "$GITHUB_OUTPUT"
else
echo "changed=true" >> "$GITHUB_OUTPUT"
fi
- name: Run repo-native validation
if: steps.changes.outputs.changed == 'true'
run: cargo make decodex-checks
- name: Commit refreshed release delta
if: steps.changes.outputs.changed == 'true'
run: |
git config user.name "github-actions[bot]"
git config user.email "41898282+github-actions[bot]@users.noreply.github.com"
git add site/src/content/release-deltas/openai-codex-latest.json
git commit -m "chore(decodex): refresh release delta"
git push origin HEAD:main