Skip to content
This repository has been archived by the owner on Apr 23, 2023. It is now read-only.

Commit

Permalink
Use commit count for lastes build name
Browse files Browse the repository at this point in the history
  • Loading branch information
EverNife committed Dec 3, 2022
1 parent fd1ad68 commit 6c07356
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions .github/workflows/MasterBuild.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,6 @@ jobs:
- name: Build with Gradle
run: ./gradlew cleanCache clean build_them_all --refresh-dependencies

- name: Create sha_shot variable
id: vars
run: echo "::set-output name=sha_short::$(git rev-parse --short HEAD)"

- name: Delete latest Dev Release
uses: dev-drprasad/[email protected]
with:
Expand All @@ -38,11 +34,19 @@ jobs:
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: Create commit_count Variable
id: commit_count
run: echo "::set-output name=commit_count::$(git rev-list --count HEAD)"

- name: Create sha_short Variable
id: sha_short
run: echo "::set-output name=sha_short::$(git rev-parse --short HEAD)"

- name: Create latest Dev Release
uses: softprops/action-gh-release@v1
with:
tag_name: latest
prerelease: true
name: Latest Dev Build - ${{ steps.vars.outputs.sha_short }}
name: "DevBuild [${{ steps.commit_count.outputs.commit_count }}] - ${{ steps.sha_short.outputs.sha_short }}"
files: |
dist/*.jar

0 comments on commit 6c07356

Please sign in to comment.