Skip to content

Commit

Permalink
Merge pull request #79 from CleverNucleus/1.19.2/dev
Browse files Browse the repository at this point in the history
modified generated output
  • Loading branch information
CleverNucleus authored Apr 9, 2023
2 parents e300ea7 + 3c941a3 commit 01611b3
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions .github/workflows/build-and-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,11 +43,15 @@ jobs:
- name: get mod version
if: github.ref == 'refs/heads/${{ env.BRANCH_PREFIX }}/main'
id: mod_version
run: grep "mod_version" gradle.properties | cut -d'=' -f2 >> $GITHUB_OUTPUT
run: |
mod_version_val=$(grep "mod_version" gradle.properties | cut -d'=' -f2 | tr -d '\n')
echo "mod_version=$mod_version_val" >> $GITHUB_OUTPUT
- name: get minecraft version
if: github.ref == 'refs/heads/${{ env.BRANCH_PREFIX }}/main'
id: minecraft_version
run: grep "mod_version" gradle.properties | cut -d'+' -f2 >> $GITHUB_OUTPUT
run: |
minecraft_version_val=$(grep "mod_version" gradle.properties | cut -d'+' -f2 | tr -d '\n')
echo "minecraft_version=$minecraft_version_val" >> $GITHUB_OUTPUT
- name: deploy with mc-publish
if: github.ref == 'refs/heads/${{ env.BRANCH_PREFIX }}/main'
uses: Kir-Antipov/[email protected]
Expand Down

0 comments on commit 01611b3

Please sign in to comment.