Skip to content

Commit 6ac064e

Browse files
committed
Put in temporary debugging steps
1 parent d2f30a8 commit 6ac064e

File tree

3 files changed

+16
-5
lines changed

3 files changed

+16
-5
lines changed

.github/actions/package-and-upload-artifacts/action.yaml

+5-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
name: Package and upload artifacts
22
description: Package a Python project and upload the artifacts and release notes
3+
inputs:
4+
tag-name:
5+
description: 'The name of the tag for the GitHub release'
6+
required: true
37
runs:
48
using: 'composite'
59
steps:
@@ -22,7 +26,7 @@ runs:
2226
}
2327
2428
changelog=$(cat "CHANGELOG.md")
25-
target_version=${GITHUB_REF#refs/tags/}
29+
target_version=${{ inputs.tag-name }}
2630
echo "TAG_NAME=$target_version" >> $GITHUB_ENV
2731
content=$(extract_version_content "$changelog" "$target_version")
2832

.github/workflows/version-preview.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ on:
55
branches: [master]
66

77
jobs:
8-
bumpversion:
8+
preview-version-hint:
99
runs-on: ubuntu-latest
1010
steps:
1111
- uses: actions/checkout@v4

.github/workflows/version.yaml

+10-3
Original file line numberDiff line numberDiff line change
@@ -42,18 +42,25 @@ jobs:
4242
case "$RELEASE_KIND" in
4343
major|minor|patch)
4444
bump-my-version bump --allow-dirty --verbose "$RELEASE_KIND"
45-
git push
46-
git push --tags
45+
echo "TAG_NAME=$(bump-my-version show current_version)" >> $GITHUB_ENV
46+
# git push
47+
# git push --tags
4748
echo "PACKAGE=true" >> $GITHUB_ENV
4849
;;
4950
dev)
50-
echo "Intentionally not bumping version for dev release"
51+
echo "Temporary dev release for testing"
52+
bump-my-version bump --allow-dirty --verbose "$RELEASE_KIND"
53+
echo "TAG_NAME=$(bump-my-version show current_version)" >> $GITHUB_ENV
54+
echo "PACKAGE=true" >> $GITHUB_ENV
55+
# echo "Intentionally not bumping version for dev release"
5156
;;
5257
esac
5358
5459
- name: Package and upload artifacts
5560
if: ${{ env.PACKAGE == 'true' }}
5661
uses: ./.github/actions/package-and-upload-artifacts
62+
with:
63+
tag-name: ${{ env.TAG_NAME }}
5764

5865
- name: Create a GitHub release
5966
if: ${{ env.PACKAGE == 'true' }}

0 commit comments

Comments
 (0)