wip: setup infra to set discourse customizations via API #12
Workflow file for this run
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: 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 }} |