Update release PR #11
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: Update release PR | |
| run-name: Update release PR | |
| on: | |
| push: | |
| branches: | |
| - dev | |
| permissions: | |
| contents: read | |
| pull-requests: write | |
| concurrency: | |
| group: update-release-pr | |
| cancel-in-progress: true | |
| env: | |
| JOBS: python .github/workflows/scripts/jobs.py | |
| VALIDATION_REF: dev | |
| jobs: | |
| prepare: | |
| name: Open pull request to main | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 10 | |
| steps: | |
| - uses: actions/checkout@v7 | |
| with: | |
| ref: ${{ env.VALIDATION_REF }} | |
| fetch-depth: 0 | |
| - uses: actions/setup-python@v6 | |
| with: | |
| python-version-file: .python-version | |
| - name: Install commitizen | |
| run: | | |
| python -m pip install --upgrade pip commitizen | |
| python -m pip install -e . --no-deps | |
| - name: Render preview changelog | |
| id: preview | |
| run: ${{ env.JOBS }} prepare | |
| - name: Open or update the release pull request | |
| if: ${{ steps.preview.outputs.releasable == 'true' }} | |
| run: ${{ env.JOBS }} open_main_pr | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| PREDICTED_VERSION: ${{ steps.preview.outputs.predicted_version }} |