Skip to content

Commit

Permalink
Update gradle.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
ATPStorages authored Apr 14, 2024
1 parent a78066c commit c9021ec
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions .github/workflows/gradle.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,17 @@ jobs:
with:
file: gradle.properties
all: true
- name: Truncate Git SHA
id: truncated
uses: actions/github-script@v7.0.1
with:
script: |
const sha = context.payload.client_payload.value.substring(1,6)
core.setOutput('sha', sha)
- name: Create Release
uses: softprops/action-gh-release@v2
with:
files: build/libs/*
tag_name: 'snapshot'
name: ${{steps.readproperties.outputs.mod_name}} ${{steps.readproperties.outputs.mod_version}}.alpha.${GITHUB_SHA::6}
tag_name: snapshot-${{ steps.truncated.outputs.sha }}
name: ${{steps.readproperties.outputs.mod_name}} ${{steps.readproperties.outputs.mod_version}}.alpha.${{ steps.truncated.outputs.sha }}
draft: false

0 comments on commit c9021ec

Please sign in to comment.