Refresh Upstream Radar #29
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Refresh Upstream Radar | |
| permissions: | |
| contents: write | |
| on: | |
| schedule: | |
| - cron: "0 */6 * * *" | |
| workflow_dispatch: | |
| concurrency: | |
| group: ${{ github.workflow }} | |
| cancel-in-progress: true | |
| jobs: | |
| refresh: | |
| name: Refresh Codex upstream queue | |
| 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 upstream review queue | |
| run: | | |
| cargo run -p decodex --bin decodex -- radar refresh-upstream-queue \ | |
| --repo openai/codex \ | |
| --search-limit 40 | |
| - name: Detect content changes | |
| id: changes | |
| run: | | |
| if [ -z "$(git status --porcelain -- \ | |
| artifacts/github/review-queue)" ]; 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 GitHub artifacts | |
| 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 artifacts/github/review-queue | |
| git commit -m "chore(decodex): refresh upstream radar" | |
| git push origin HEAD:main |