From 463082b1996d3bbd7cd4b6adfe732ede73f5cf54 Mon Sep 17 00:00:00 2001 From: Corey Oordt Date: Sun, 22 Oct 2023 09:55:29 -0500 Subject: [PATCH] Fix dev versioning with PR number --- .github/workflows/ci.yaml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 2bebc049..ec8e0cbc 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -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