Skip to content

Commit d04ff67

Browse files
authored
fix(workflow): 🐛 fixed pre-release workflow issue (#269)
1 parent f044354 commit d04ff67

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

.github/workflows/pre-release.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,8 @@ jobs:
4343
- name: Get the previous release version
4444
id: old_version
4545
run: |
46-
export MVN_OLD_VERSION=$(git describe --tags --abbrev=0)
47-
echo "::set-output name=previous_version::$MVN_OLD_VERSION"
46+
export MVN_OLD_VERSION=$(git describe --tags $(git rev-list --tags --max-count=1))
47+
echo "previous_version=$MVN_OLD_VERSION" >> $GITHUB_OUTPUT
4848
4949
- name: Update pre-release version
5050
run: yarn prerelease
@@ -53,7 +53,7 @@ jobs:
5353
id: version
5454
run: |
5555
export MVN_VERSION=$(node -pe "require('./website/package.json').version")
56-
echo "::set-output name=version::$MVN_VERSION"
56+
echo "version=$MVN_VERSION" >> $GITHUB_OUTPUT
5757
5858
- name: Generate Change log
5959
if: steps.version.outputs.version != null

.github/workflows/release.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ jobs:
4444
id: old_version
4545
run: |
4646
export MVN_OLD_VERSION=$(git describe --match "v[0-9].[0-9].[0-9]" --abbrev=0 --tags HEAD)
47-
echo "::set-output name=previous_version::$MVN_OLD_VERSION"
47+
echo "previous_version=$MVN_OLD_VERSION" >> $GITHUB_OUTPUT
4848
4949
- name: Update release version
5050
run: yarn release
@@ -53,7 +53,7 @@ jobs:
5353
id: version
5454
run: |
5555
export MVN_VERSION=$(node -pe "require('./website/package.json').version")
56-
echo "::set-output name=version::$MVN_VERSION"
56+
echo "version=$MVN_VERSION" >> $GITHUB_OUTPUT
5757
5858
- name: Generate Change log
5959
if: steps.version.outputs.version != null

.github/workflows/test-release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ jobs:
4141
id: version
4242
run: |
4343
export MVN_VERSION=$(node -pe "require('./website/package.json').version")
44-
echo "::set-output name=version::$MVN_VERSION"
44+
echo "version=$MVN_VERSION" >> $GITHUB_OUTPUT
4545
4646
- name: Start Selenium Grid
4747
run: java -jar core-java/libs/selenium-server-4.4.0.jar standalone > sample-tests/selenium-grid.log &

0 commit comments

Comments
 (0)