refactoring #30
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: pyqual ticket sync | |
| on: | |
| push: | |
| branches: | |
| - main | |
| paths: | |
| - TODO.md | |
| - github.planfile.yaml | |
| - .planfile/** | |
| - "*.planfile.yaml" | |
| - "*.planfile.yml" | |
| schedule: | |
| - cron: "0 3 * * *" | |
| workflow_dispatch: | |
| permissions: | |
| contents: read | |
| issues: write | |
| jobs: | |
| sync: | |
| runs-on: ubuntu-latest | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/setup-python@v5 | |
| with: | |
| python-version: "3.11" | |
| - name: Create virtualenv | |
| run: python -m venv .venv | |
| - name: Install dependencies | |
| run: | | |
| .venv/bin/python -m pip install --upgrade pip | |
| .venv/bin/pip install -e ".[dev]" build twine | |
| - name: Sync TODO and GitHub issues | |
| run: .venv/bin/pyqual tickets all --workdir . --direction both |