fix: add configurable proxy timeout for source network fetches #149
Workflow file for this run
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: auto-bump | |
| on: | |
| pull_request: | |
| branches: | |
| - develop | |
| - main | |
| types: | |
| - opened | |
| workflow_dispatch: | |
| inputs: | |
| logLevel: | |
| description: "Log level" | |
| required: true | |
| default: "warning" | |
| type: choice | |
| options: | |
| - info | |
| - warning | |
| - debug | |
| jobs: | |
| auto-bump: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v3 | |
| with: | |
| ref: ${{ github.head_ref }} | |
| fetch-depth: 0 | |
| - name: Set up Python | |
| uses: actions/setup-python@v4 | |
| with: | |
| python-version: "3.10" | |
| - name: Install dependencies | |
| run: | | |
| python -m pip install --upgrade pip | |
| pip install bump2version | |
| - name: Setup Git | |
| run: | | |
| git config user.email "41898282+github-actions@users.noreply.github.com" | |
| git config user.name "github-actions" | |
| git fetch origin ${{ github.event.pull_request.base.ref }}:${{ github.event.pull_request.base.ref }} | |
| - name: Auto bump version | |
| run: | | |
| VERSION=$(bump2version --dry-run --list patch | grep current_version | sed -E 's/.*=//') | |
| BASE_SHA=${{ github.event.pull_request.base.sha }} | |
| echo "Base SHA: $BASE_SHA" | |
| HEAD_SHA=${{ github.event.pull_request.head.sha }} | |
| echo "Head SHA: $HEAD_SHA" | |
| COMMITS=$(git log --pretty=format:%s $BASE_SHA..$HEAD_SHA) | |
| echo "Commits: $COMMITS" | |
| python scripts/auto_bump.py ${{ github.event.pull_request.base.ref }} "$VERSION" "$COMMITS" | |
| git push | |
| - name: Update changelog if targeting main branch | |
| if: ${{ github.event.pull_request.base.ref == 'main' }} | |
| run: | | |
| VERSION=$(bump2version --dry-run --list patch | grep current_version | sed -E 's/.*=//') | |
| bash scripts/changelog_release.sh | |
| git add docs/source/dev_documentation/changelog.md | |
| git commit -m "bump changelog: Unreleased -> ${VERSION}" | |
| git push |