Sync Release to Jira #12
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 Release to Jira | |
| # Manual trigger - run from GitHub Actions UI after publishing a release | |
| on: | |
| workflow_dispatch: | |
| inputs: | |
| version: | |
| description: "Release version (e.g., 0.42.0 or v0.42.0)" | |
| required: true | |
| type: string | |
| # Read-only permissions by default | |
| permissions: | |
| contents: read | |
| jobs: | |
| sync-jira: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v4 | |
| - name: Set up Python | |
| uses: actions/setup-python@v5 | |
| with: | |
| python-version: "3.11" | |
| - name: Install dependencies | |
| run: pip install requests | |
| - name: Run Jira sync | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| JIRA_BASE_URL: ${{ vars.JIRA_BASE_URL }} | |
| JIRA_EMAIL: ${{ secrets.JIRA_EMAIL }} | |
| JIRA_API_TOKEN: ${{ secrets.JIRA_API_TOKEN }} | |
| # Pass version via env var to prevent shell injection | |
| RELEASE_VERSION: ${{ inputs.version }} | |
| run: | | |
| python etc/sync_jira_release.py "$RELEASE_VERSION" |