Skip to content

Check: chunkah version #5

Check: chunkah version

Check: chunkah version #5

Workflow file for this run

name: "Check: chunkah version"
on:
schedule:
- cron: '0 7 * * 1' # Weekly, Monday 07:00 UTC
workflow_dispatch:
permissions: {}
jobs:
check:
runs-on: ubuntu-24.04
permissions:
contents: read
issues: write
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
- name: Check chunkah version drift
env:
GH_TOKEN: ${{ github.token }}
run: |
# Extract latest version tag from upstream README (e.g. "v0.3.0")
UPSTREAM_VER=$(curl -fsSL https://raw.githubusercontent.com/coreos/chunkah/main/README.md \
| grep -oP 'releases/download/\Kv[0-9]+\.[0-9]+\.[0-9]+' | head -1)
# Extract pinned version from chunkah container image tag in build.yml
CURRENT_VER=$(grep -oP 'quay\.io/jlebon/chunkah:\Kv[0-9]+\.[0-9]+\.[0-9]+' \
.github/workflows/build.yml | head -1)
echo "Upstream chunkah version: ${UPSTREAM_VER}"
echo "Pinned chunkah version: ${CURRENT_VER}"
if [ "${UPSTREAM_VER}" != "${CURRENT_VER}" ]; then
echo "chunkah version drift detected"
gh issue create \
--title "chunkah: upstream is ${UPSTREAM_VER}, pinned to ${CURRENT_VER}" \
--body "Upstream chunkah README references \`${UPSTREAM_VER}\` but \`build.yml\` and \`Justfile\` pin \`${CURRENT_VER}\`. Update \`chunkah_image\` in \`Justfile\` and the image tag in \`.github/workflows/build.yml\`, then verify the invocation pattern has not changed." \
--label "maintenance" || true
else
echo "chunkah version matches upstream — no drift"
fi