Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/1.20.1' into 1.20.1
Browse files Browse the repository at this point in the history
  • Loading branch information
ATPStorages committed Apr 14, 2024
2 parents 3c88e05 + c9021ec commit 3619e0c
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}} (${{ github.sha }})
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 3619e0c

Please sign in to comment.