Skip to content

Delete .github/workflows/claude-code-review.yml #71

Delete .github/workflows/claude-code-review.yml

Delete .github/workflows/claude-code-review.yml #71

Workflow file for this run

name: Sync
on:
push:
workflow_dispatch:
workflow_call:
# Cancel in-progress runs when starting a new one.
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
# Build the list of target repositories from the config.
init:
runs-on: ubuntu-latest
outputs:
children: ${{ steps.parse.outputs.children }}
steps:
- name: Checkout source
uses: actions/checkout@v4
- name: Checkout github-graph
uses: actions/checkout@v4
with:
repository: SgtSwagrid/github-graph
path: .github-graph
- name: Parse config
id: parse
env:
DEFAULT_BRANCH: ${{ github.event.repository.default_branch }}
run: bash .github-graph/scripts/parse-config.sh
# Synchronise each target repository.
sync:
name: sync → ${{ matrix.child.target.name }}
needs: init
if: needs.init.outputs.children != '[]'
runs-on: ubuntu-latest
permissions:
contents: read
strategy:
fail-fast: false
matrix:
child: ${{ fromJson(needs.init.outputs.children) }}
steps:
- name: Checkout github-graph
uses: actions/checkout@v4
with:
repository: SgtSwagrid/github-graph
path: .github-graph
- name: Checkout source
uses: actions/checkout@v4
with:
ref: ${{ matrix.child.source.branch }}
path: source
- name: Checkout target
uses: actions/checkout@v4
with:
repository: ${{ matrix.child.target.repository }}
ref: ${{ matrix.child.target.branch }}
token: ${{ secrets[matrix.child.token] }}
path: target
- name: Load config
run: bash .github-graph/scripts/load-config.sh '${{ toJson(matrix.child) }}'
- name: Merge files
run: bash .github-graph/scripts/merge-files.sh
- name: Commit changes
env:
GH_TOKEN: ${{ secrets[matrix.child.token] }}
run: bash .github-graph/scripts/publish.sh