diff --git a/.github/workflows/check-new-release.yml b/.github/workflows/check-new-release.yml deleted file mode 100644 index 7a20d6452..000000000 --- a/.github/workflows/check-new-release.yml +++ /dev/null @@ -1,59 +0,0 @@ -name: Check for New EnergyPlus Release - -on: - schedule: - # Run every Monday at 08:00 UTC - - cron: "0 8 * * 1" - workflow_dispatch: - -permissions: - contents: read - actions: write - -jobs: - check: - runs-on: ubuntu-latest - steps: - - name: Check out - uses: actions/checkout@v4 - - - name: Check for new release - id: check - env: - GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} - run: | - # Fetch the latest release tag from NatLabRockies/EnergyPlus - LATEST_TAG=$(gh api repos/NatLabRockies/EnergyPlus/releases/latest --jq '.tag_name') - echo "Latest EnergyPlus release: ${LATEST_TAG}" - - # Check if this version is already in our versions.json on gh-pages - KNOWN_VERSIONS="" - if gh api "repos/${{ github.repository }}/contents/versions.json?ref=gh-pages" --jq '.content' 2>/dev/null | base64 -d > /tmp/versions.json 2>/dev/null; then - KNOWN_VERSIONS=$(python3 -c " - import json, sys - data = json.load(open('/tmp/versions.json')) - for entry in data: - print(entry['title']) - ") - fi - - # Strip the 'v' prefix for comparison - LATEST_TITLE="${LATEST_TAG#v}" - - if echo "$KNOWN_VERSIONS" | grep -q "^${LATEST_TITLE}$"; then - echo "Version ${LATEST_TAG} already deployed" - echo "new_version=" >> "$GITHUB_OUTPUT" - else - echo "New version found: ${LATEST_TAG}" - echo "new_version=${LATEST_TAG}" >> "$GITHUB_OUTPUT" - fi - - - name: Trigger conversion workflow - if: steps.check.outputs.new_version != '' - env: - GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} - run: | - echo "Triggering conversion for ${{ steps.check.outputs.new_version }}" - gh workflow run convert-docs.yml \ - -f versions="${{ steps.check.outputs.new_version }}" \ - -f force_rebuild=true diff --git a/CLAUDE.md b/CLAUDE.md index 3f4ce4034..02ef27e1a 100644 --- a/CLAUDE.md +++ b/CLAUDE.md @@ -146,7 +146,7 @@ dist/ # (gitignored) Final deployed multi-version site All workflows are in `.github/workflows/`: - **`main.yml`** — Runs on push to main and PRs. Checks quality (`make check`) and docs build (`zensical build`). -- **`check-new-release.yml`** — Weekly cron (Monday 08:00 UTC) checks for new EnergyPlus releases on NatLabRockies/EnergyPlus and triggers a conversion if found. +- **New EnergyPlus releases** are detected by `energyplus-watch.yml` in idfkit-conformance, which tracks each release in one issue and opens this project's adoption only after its pinned idfkit carries the release. See `idfkit-conformance/energyplus/README.md`. - **`convert-docs.yml`** — Main build pipeline. Matrix job that converts each version in parallel, then merges all outputs and deploys to GitHub Pages. - **`on-release-main.yml`** — Triggers full rebuild of all versions when a release is published on this repo.