Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/actionlint.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ jobs:

- name: Install actionlint
env:
ACTIONLINT_VERSION: "1.7.7"
ACTIONLINT_VERSION: "1.7.12"
run: |
set -euo pipefail
curl -fsSL \
Expand Down
49 changes: 4 additions & 45 deletions .github/workflows/release-automation.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,8 @@ name: AITER Release Automation

on:
schedule:
# GitHub cron cannot express "every 14 days" directly. Trigger weekly and
# gate the release jobs below against a fixed 14-day cadence.
- cron: '0 6 * * 1'
- cron: '0 1 * * 1'
timezone: 'America/Chicago'
push:
tags:
- 'v*'
Expand All @@ -31,10 +30,6 @@ on:
description: 'Build and upload even if the GitHub Release already has the expected wheel assets.'
type: boolean
default: false
skip_biweekly_gate:
description: 'For manual testing only, ignore the every-two-week schedule gate.'
type: boolean
default: false

permissions:
contents: read
Expand Down Expand Up @@ -86,49 +81,13 @@ jobs:
INPUT_RELEASE_REF: ${{ github.event.inputs.release_ref || 'main' }}
CREATE_MISSING_REFS: ${{ github.event.inputs.create_missing_refs || true }}
FORCE_REBUILD: ${{ github.event.inputs.force_rebuild || false }}
SKIP_BIWEEKLY_GATE: ${{ github.event.inputs.skip_biweekly_gate || false }}
EXPECTED_WHEEL_COUNT: '6'
RELEASE_CADENCE_ANCHOR: '2026-08-31'
run: |
set -euo pipefail

should_run=true
skip_reason=""

if [ "${EVENT_NAME}" = "schedule" ] && [ "${SKIP_BIWEEKLY_GATE}" != "true" ]; then
today="$(date -u +%Y-%m-%d)"
anchor_seconds="$(date -u -d "${RELEASE_CADENCE_ANCHOR}" +%s)"
today_seconds="$(date -u -d "${today}" +%s)"
days_since_anchor=$(( (today_seconds - anchor_seconds) / 86400 ))
cadence_offset=$(( days_since_anchor % 14 ))

if [ "${cadence_offset}" -ne 0 ]; then
should_run=false
skip_reason="Not on the 14-day release cadence anchored at ${RELEASE_CADENCE_ANCHOR}."
fi
fi

if [ "${should_run}" != "true" ]; then
{
echo "should_run=${should_run}"
echo "skip_reason=${skip_reason}"
echo "release_tag="
echo "release_branch="
echo "release_version="
echo "release_kind="
echo "previous_tag="
echo "expected_wheel_count=${EXPECTED_WHEEL_COUNT}"
} >> "${GITHUB_OUTPUT}"

{
echo "## Release Target"
echo "- Should run: ${should_run}"
echo "- Skip reason: ${skip_reason}"
} >> "${GITHUB_STEP_SUMMARY}"

exit 0
fi

git fetch --force --tags origin
git fetch --force origin '+refs/heads/*:refs/remotes/origin/*'

Expand Down Expand Up @@ -370,7 +329,7 @@ jobs:
heading="AITER ${RELEASE_TAG} - post release"
scope="Post release on top of the ${RELEASE_BRANCH} release line."
else
heading="AITER ${RELEASE_TAG} - bi-weekly release"
heading="AITER ${RELEASE_TAG} - weekly release"
scope="Scheduled release from ${RELEASE_BRANCH}."
fi

Expand Down Expand Up @@ -476,7 +435,7 @@ jobs:
heading = f"AITER {release_tag} - post release"
scope = f"Post release on top of the `{release_branch}` release line."
else:
heading = f"AITER {release_tag} - bi-weekly release"
heading = f"AITER {release_tag} - weekly release"
scope = f"Scheduled release from `{release_branch}`."

lines = [
Expand Down