Skip to content

Tick

Tick #10531

Workflow file for this run

name: Tick
on:
schedule:
- cron: 0 * * * *
workflow_dispatch:
permissions:
contents: write
jobs:
check:
runs-on: ubuntu-latest
outputs:
update: ${{ steps.cache.outputs.cache-hit != 'true' }}
latest_version: ${{ steps.fetch.outputs.latest_version }}
steps:
- uses: actions/checkout@v6
- name: Fetch latest Fabric game version
id: fetch
run: |
mkdir -p fabric-version-cache
latest=$(curl -s https://meta.fabricmc.net/v2/versions/game | jq -r '.[0].version')
echo "latest_version=$latest" >> "$GITHUB_OUTPUT"
- name: Try restore cache (detect existing version)
id: cache
uses: actions/cache@v5
with:
path: fabric-version-cache
key: fabric-version-cache-key-${{ runner.os }}-${{ steps.fetch.outputs.latest_version }}
update:
needs: check
if: ${{ needs.check.outputs.update == 'true' }}
strategy:
matrix:
branch: [v1, legacy]
uses: ./.github/workflows/run.yml
with:
branch: ${{ matrix.branch }}
version: ${{ needs.check.outputs.latest_version }}