diff --git a/.github/workflows/sync-github-project.yml b/.github/workflows/sync-github-project.yml new file mode 100644 index 0000000..cd16b39 --- /dev/null +++ b/.github/workflows/sync-github-project.yml @@ -0,0 +1,38 @@ +name: Sync GitHub Project + +on: + push: + branches: + - main + paths: + - "TODO.md" + workflow_dispatch: + +concurrency: + group: sync-github-project + cancel-in-progress: false + +permissions: + issues: write + contents: read + +jobs: + sync: + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v4 + + - name: Setup Node + uses: actions/setup-node@v4 + with: + node-version: "20" + cache: "npm" + + - name: Install dependencies + run: npm ci + + - name: Sync GitHub Project (milestones, labels, issues) + env: + GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} + run: npm run sync:github-project