Skip to content

Commit 5fa454d

Browse files
authored
chore: fix issue in prepare release action and run pub action (#2293)
pick commit 308ae49 and 86cd631
1 parent aede2cf commit 5fa454d

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

.github/workflows/run_prepare_release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ jobs:
6161
author: ${{ github.actor }} <${{ github.actor }}@users.noreply.github.com>
6262
signoff: false
6363
branch: prepare-release-${{ inputs.version }}
64-
base: main
64+
base: ${{ inputs.release_branch }}
6565
delete-branch: true
6666
title: "chore: release ${{ inputs.version }}"
6767
body: |

.github/workflows/run_pub.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ jobs:
2222
- name: Check Versions 🔎
2323
run: |
2424
set -eo pipefail
25-
export LIB_VERSION=$(git describe --tags `git rev-list --tags --max-count=1`)
25+
export LIB_VERSION=$(git describe --tags `git rev-list --tags --max-count=1 HEAD`)
2626
echo "LIB_VERSION: ${LIB_VERSION}"
2727
export PUBSPEC_VERSION=$(grep 'version: ' pubspec.yaml | sed -e 's,.*: \(.*\),\1,')
2828
echo "PUBSPEC_VERSION: ${PUBSPEC_VERSION}"

0 commit comments

Comments
 (0)