Skip to content

Commit

Permalink
save-state
Browse files Browse the repository at this point in the history
  • Loading branch information
Loweredgames committed Feb 4, 2024
1 parent 4857594 commit 58fe6af
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,16 +28,16 @@ jobs:
data = json.load(f)
Release_Id = data.get('Release_Id', '')
Nightly_Release_Id = data.get('Nightly_Release_Id', '')
print(f"::set-output name=RELEASE::{Release_Id}")
print(f"::set-output name=NIGHTLY::{Nightly_Release_Id}")
print(f"::save-state name=RELEASE::{Release_Id}")
print(f"::save-state name=NIGHTLY::{Nightly_Release_Id}")
shell: python
- name: Construct filename
id: construct_filename
run: |
filename="${{ env.MAP_NAME }}-MC${{ steps.get_version.outputs.RELEASE }}-R${{ steps.get_version.outputs.NIGHTLY }}"
fi
filename="${filename}.zip"
echo "::set-output name=zipname::$filename"
echo "::save-state name=zipname::$filename"
- name: Install 7zip
run: sudo apt-get install p7zip-full
- name: Zip Resource Pack
Expand All @@ -60,22 +60,22 @@ jobs:
else
release_name="$base_name"
fi
echo "::set-output name=releasename::$release_name"
echo "::save-state name=releasename::$release_name"
- name: Construct tag name
id: construct_tag
run: |
tag_name="${{ steps.get_version.outputs.RELEASE }}-R${{ steps.get_version.outputs.NIGHTLY }}"
if [[ -n "${{ steps.get_version.outputs.RELSUBVERSION }}" ]]; then
tag_name="${tag_name}_${{ steps.get_version.outputs.RELSUBVERSION }}"
fi
echo "::set-output name=tag::$tag_name"
echo "::save-state name=tag::$tag_name"
- name: Determine pre-release status
id: prerelease_status
run: |
if [[ -n "${{ steps.get_version.outputs.RELSUBVERSION }}" ]]; then
echo "::set-output name=prerelease::true"
echo "::save-state name=prerelease::true"
else
echo "::set-output name=prerelease::false"
echo "::save-state name=prerelease::false"
fi
- name: Create Release
uses: softprops/action-gh-release@v1
Expand Down

0 comments on commit 58fe6af

Please sign in to comment.