chore(project): add declarative project plan sync workflow #6
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: Project Plan Sync | |
| on: | |
| push: | |
| branches: [ main ] | |
| workflow_dispatch: | |
| permissions: | |
| contents: read | |
| issues: write | |
| pull-requests: read | |
| env: | |
| PROJECT_NUMBER: 3 | |
| STATUS_TODO_NAME: "To do" | |
| STATUS_INPROGRESS_NAME: "In Progress" | |
| STATUS_DONE_NAME: "Done" | |
| jobs: | |
| sync-plan: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Install deps (gh already available) | |
| run: | | |
| pip install pyyaml || true | |
| - name: Sync project plan | |
| env: | |
| GITHUB_REPOSITORY: ${{ github.repository }} | |
| GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| PROJECT_OWNER: ${{ github.repository_owner }} | |
| PROJECT_NUMBER: ${{ env.PROJECT_NUMBER }} | |
| STATUS_TODO_NAME: ${{ env.STATUS_TODO_NAME }} | |
| STATUS_INPROGRESS_NAME: ${{ env.STATUS_INPROGRESS_NAME }} | |
| STATUS_DONE_NAME: ${{ env.STATUS_DONE_NAME }} | |
| run: | | |
| python3 scripts/sync_project_plan.py |