Skip to content
This repository was archived by the owner on Jul 28, 2021. It is now read-only.

Commit c10310f

Browse files
authored
Update pre-release.yml
1 parent 29f4463 commit c10310f

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

.github/workflows/pre-release.yml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,19 +23,21 @@ jobs:
2323
java-version: '11'
2424
distribution: 'adopt'
2525

26-
- name: Add SHORT_SHA env property with commit short sha
27-
run: echo "SHORT_SHA=`echo ${GITHUB_SHA} | cut -c1-8`" >> $GITHUB_ENV
26+
- name: Set outputs
27+
id: vars
28+
run: echo "::set-output name=sha_short::$(git rev-parse --short HEAD)"
2829

2930
- name: Build with Maven
3031
run: |
3132
mvn clean verify assembly:single
3233
echo 'Development Build successfully created.'
3334
3435
- uses: "marvinpinto/action-automatic-releases@latest"
36+
id: releaser
3537
with:
3638
repo_token: "${{ secrets.GITHUB_TOKEN }}"
37-
automatic_release_tag: "dev-snapshot-${{ SHORT_SHA }}"
39+
automatic_release_tag: "dev-snapshot-${{ steps.vars.outputs.sha_short }}"
3840
prerelease: true
39-
title: "RoseDB - Development Build ${{ SHORT_SHA }}"
41+
title: "RoseDB - Development Build ${{ steps.vars.outputs.sha_short }}"
4042
files: |
4143
target/*.jar

0 commit comments

Comments
 (0)