add testing versions & updated workflow
All checks were successful
Build and Push Minecraft Docker Images on Debian-base update / poll-debian-base-and-detect-changes (push) Successful in 7s
Build and Push Minecraft Docker Images on Debian-base update / Build and Push fabric (push) Has been skipped
Build and Push Minecraft Docker Images on Debian-base update / Build and Push testing-fabric (push) Has been skipped
Build and Push Minecraft Docker Images on Debian-base update / Build and Push testing-vanilla (push) Has been skipped
Build and Push Minecraft Docker Images on Debian-base update / Build and Push vanilla (push) Has been skipped
Build and Push Minecraft Docker Images on Debian-base update / generate-changelogs (push) Has been skipped
Build and Push Minecraft Docker Images on Debian-base update / generate-build-info (push) Has been skipped
All checks were successful
Build and Push Minecraft Docker Images on Debian-base update / poll-debian-base-and-detect-changes (push) Successful in 7s
Build and Push Minecraft Docker Images on Debian-base update / Build and Push fabric (push) Has been skipped
Build and Push Minecraft Docker Images on Debian-base update / Build and Push testing-fabric (push) Has been skipped
Build and Push Minecraft Docker Images on Debian-base update / Build and Push testing-vanilla (push) Has been skipped
Build and Push Minecraft Docker Images on Debian-base update / Build and Push vanilla (push) Has been skipped
Build and Push Minecraft Docker Images on Debian-base update / generate-changelogs (push) Has been skipped
Build and Push Minecraft Docker Images on Debian-base update / generate-build-info (push) Has been skipped
This commit is contained in:
@@ -28,6 +28,7 @@ jobs:
|
|||||||
outputs:
|
outputs:
|
||||||
digest_changed: ${{ steps.compare_digest.outputs.changed }}
|
digest_changed: ${{ steps.compare_digest.outputs.changed }}
|
||||||
versions_changed: ${{ steps.check_changed_versions.outputs.versions_changed }}
|
versions_changed: ${{ steps.check_changed_versions.outputs.versions_changed }}
|
||||||
|
new_versions: ${{ steps.check_new_versions.outputs.new_versions }}
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout repo
|
- name: Checkout repo
|
||||||
@@ -81,12 +82,32 @@ jobs:
|
|||||||
done
|
done
|
||||||
CHANGED_VERSIONS=$(echo "$CHANGED_VERSIONS" | xargs) # trim whitespace
|
CHANGED_VERSIONS=$(echo "$CHANGED_VERSIONS" | xargs) # trim whitespace
|
||||||
echo "versions_changed=$CHANGED_VERSIONS" >> $GITHUB_OUTPUT
|
echo "versions_changed=$CHANGED_VERSIONS" >> $GITHUB_OUTPUT
|
||||||
|
|
||||||
|
- name: Detect Minecraft versions without build-info
|
||||||
|
id: check_new_versions
|
||||||
|
run: |
|
||||||
|
NEW_VERSIONS=""
|
||||||
|
GIT_CREDENTIAL="${{ secrets.GIT_TOKEN || secrets.GIT_PASSWORD }}"
|
||||||
|
git clone --depth=1 "https://${{ secrets.GIT_USERNAME }}:${GIT_CREDENTIAL}@gitea.fithwum.tech/fithwum/minecraft.git" upload-repo
|
||||||
|
|
||||||
|
for version in $VERSIONS; do
|
||||||
|
if [ ! -f "upload-repo/$version/build-info.json" ]; then
|
||||||
|
echo "[INFO] No build-info.json for $version → treating as new"
|
||||||
|
NEW_VERSIONS="$NEW_VERSIONS $version"
|
||||||
|
fi
|
||||||
|
done
|
||||||
|
|
||||||
|
echo "new_versions=$NEW_VERSIONS" >> $GITHUB_OUTPUT
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
build-minecraft-images:
|
build-minecraft-images:
|
||||||
runs-on: vm-docker-build2
|
runs-on: vm-docker-build2
|
||||||
needs: poll-debian-base-and-detect-changes
|
needs: poll-debian-base-and-detect-changes
|
||||||
if: always()
|
if: |
|
||||||
# if: needs.poll-debian-base-and-detect-changes.outputs.digest_changed == 'true' || needs.poll-debian-base-and-detect-changes.outputs.versions_changed != ''
|
needs.poll-debian-base-and-detect-changes.outputs.digest_changed == 'true' ||
|
||||||
|
needs.poll-debian-base-and-detect-changes.outputs.versions_changed != '' ||
|
||||||
|
needs.poll-debian-base-and-detect-changes.outputs.new_versions != ''
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
version: [vanilla, testing-vanilla, fabric, testing-fabric]
|
version: [vanilla, testing-vanilla, fabric, testing-fabric]
|
||||||
|
|||||||
Reference in New Issue
Block a user