Skip to content

Commit

Permalink
JE-1.21/1.21.1-6.0.0-Skyblock_Classic_Edition:NIGHTLY_BUILDING_20.01.…
Browse files Browse the repository at this point in the history
…2025.21738a_[CItest]
  • Loading branch information
Loweredgames committed Jan 20, 2025
1 parent a2fba40 commit 482da5a
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 8 deletions.
19 changes: 15 additions & 4 deletions .github/workflows/nightly_release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,23 @@ jobs:
with:
fetch-depth: 2

- name: Check if Nightly Release Building changed
- name: Get file changes
id: changed-files
run: |
DIFF=$(git diff HEAD^ HEAD -- "datapacks/Skyblock CE datapacks/data/skyblock/function/versions/changelog/building_version.json")
echo "diff<<EOF" >> $GITHUB_OUTPUT
echo "$DIFF" >> $GITHUB_OUTPUT
echo "EOF" >> $GITHUB_OUTPUT
- name: Check if Nightly Building changed
id: check
shell: bash
run: |
if git diff HEAD^ HEAD -- "datapacks/Skyblock CE datapacks/data/skyblock/function/versions/changelog/building_version.json" | grep -q '"Nightly Building"'; then
echo "changed=true" >> $GITHUB_OUTPUT
if echo "${{ steps.changed-files.outputs.diff }}" | grep -q '"Nightly Building"'; then
if ! echo "${{ steps.changed-files.outputs.diff }}" | grep -q '"Release Building"'; then
echo "changed=true" >> $GITHUB_OUTPUT
else
echo "changed=false" >> $GITHUB_OUTPUT
fi
else
echo "changed=false" >> $GITHUB_OUTPUT
fi
Expand Down
17 changes: 14 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,23 @@ jobs:
with:
fetch-depth: 2

- name: Get file changes
id: changed-files
run: |
DIFF=$(git diff HEAD^ HEAD -- "datapacks/Skyblock CE datapacks/data/skyblock/function/versions/changelog/building_version.json")
echo "diff<<EOF" >> $GITHUB_OUTPUT
echo "$DIFF" >> $GITHUB_OUTPUT
echo "EOF" >> $GITHUB_OUTPUT
- name: Check if Release Building changed
id: check
shell: bash
run: |
if git diff HEAD^ HEAD -- "datapacks/Skyblock CE datapacks/data/skyblock/function/versions/changelog/building_version.json" | grep -q '"Release Building"'; then
echo "changed=true" >> $GITHUB_OUTPUT
if echo "${{ steps.changed-files.outputs.diff }}" | grep -q '"Release Building"'; then
if ! echo "${{ steps.changed-files.outputs.diff }}" | grep -q '"Nightly Building"'; then
echo "changed=true" >> $GITHUB_OUTPUT
else
echo "changed=false" >> $GITHUB_OUTPUT
fi
else
echo "changed=false" >> $GITHUB_OUTPUT
fi
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

"Release Building": "JE-1.21/1.21.1-6.0.0-Skyblock_Classic_Edition:9testCI",

"Nightly Building": "JE-1.21/1.21.1-6.0.0-Skyblock_Classic_Edition:NIGHTLY_BUILDING_20.01.2025.11738a_[CItest]",
"Nightly Building": "JE-1.21/1.21.1-6.0.0-Skyblock_Classic_Edition:NIGHTLY_BUILDING_20.01.2025.21738a_[CItest]",

"Data_pack": "TRUE",

Expand Down

0 comments on commit 482da5a

Please sign in to comment.