We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 30bb533 commit 92c7639Copy full SHA for 92c7639
.github/workflows/release.yml
@@ -38,11 +38,19 @@ jobs:
38
version: ${{ steps.create-release-branch.outputs.version }}
39
branch: ${{ steps.create-release-branch.outputs.branch }}
40
steps:
41
+ - name: Checkout this repository
42
+ uses: actions/checkout@v4
43
+ with:
44
+ ref: ${{ inputs.branch || 'main' }}
45
+ fetch-tags: true
46
+ path: version-checkout
47
+
48
- id: version
49
run: |
50
if [[ -n "${{ inputs.version }}" ]]; then
51
echo "version=${{ inputs.version }}" >> "$GITHUB_OUTPUT"
52
else
53
+ cd version-checkout
54
tag=$(git describe --tags --abbrev=0)
55
tweak=$(git describe --tags --abbrev=1 | cut -d'-' -f2)
56
echo "version=$tag.$tweak" >> "$GITHUB_OUTPUT"
0 commit comments