Skip to content

Commit

Permalink
Fix dev versioning with PR number
Browse files Browse the repository at this point in the history
  • Loading branch information
coordt committed Oct 22, 2023
1 parent 1eed99b commit 463082b
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -80,9 +80,12 @@ jobs:
- name: Set dev version
shell: bash
run: |
PR_NUMBER=$(gh pr view --json number -q .number || echo "")
export PR_NUMBER=$(gh pr view --json number -q .number || echo "")
echo "PR_NUMBER=$PR_NUMBER" >> $GITHUB_ENV
echo "::notice::PR_NUMBER is: ${PR_NUMBER}"
bump-my-version bump dev bumpversion/__init__.py --no-commit --no-configured-files -v
env:
GH_TOKEN: ${{ secrets.PAT }}

- name: Package
shell: bash
Expand Down

0 comments on commit 463082b

Please sign in to comment.