Skip to content

add guidelines (#6) #24

add guidelines (#6)

add guidelines (#6) #24

Workflow file for this run

name: Sync File Changes
on:
push:
branches: [main] # Actual sync on main branch only
pull_request: # Dry run on all PRs
jobs:
sync-changes:
runs-on: ubuntu-latest
environment: "GitHub Actions CI"
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
fetch-depth: 0 # Fetch full history for PR validation
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: '18'
- name: Run sync script
run: node .github/scripts/sync-changes.js
env:
API_KEY: ${{ secrets.API_KEY }}
API_USER: ${{ secrets.API_USER }}
GITHUB_EVENT_NAME: ${{ github.event_name }}
PR_BASE_SHA: ${{ github.event.pull_request.base.sha }}
PR_HEAD_SHA: ${{ github.event.pull_request.head.sha }}