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
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
name: Checks
name: Branch Checks

on:
push:
branches: [main]
pull_request:

env:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
name: E2E
name: Branch E2E Checks

on:
push:
branches: [main]
pull_request:
types: [opened, synchronize, reopened, labeled]

Expand All @@ -12,15 +10,15 @@ permissions:

jobs:
build-gateway:
if: github.event_name == 'push' || contains(github.event.pull_request.labels.*.name, 'e2e')
if: contains(github.event.pull_request.labels.*.name, 'e2e')
uses: ./.github/workflows/docker-build.yml
with:
component: gateway
platform: linux/arm64
runner: build-arm64

build-cluster:
if: github.event_name == 'push' || contains(github.event.pull_request.labels.*.name, 'e2e')
if: contains(github.event.pull_request.labels.*.name, 'e2e')
uses: ./.github/workflows/docker-build.yml
with:
component: cluster
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/ci-image.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: CI Image
name: Build CI Image

on:
push:
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/dco.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
name: "DCO Assistant"

on:
issue_comment:
types: [created]
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/docs-build.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Docs
name: Docs Build

on:
push:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/docs-preview-pr.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: docs-preview-pr
name: Docs PR Preview

on:
pull_request:
Expand Down
11 changes: 9 additions & 2 deletions .github/workflows/release-dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -61,9 +61,16 @@ jobs:
component: cluster
cargo-version: ${{ needs.compute-versions.outputs.cargo_version }}

e2e:
needs: [build-gateway, build-cluster]
uses: ./.github/workflows/e2e-test.yml
with:
image-tag: ${{ github.sha }}
runner: build-arm64

tag-ghcr-dev:
name: Tag GHCR Images as Dev
needs: [build-gateway, build-cluster]
needs: [build-gateway, build-cluster, e2e]
runs-on: build-amd64
timeout-minutes: 10
steps:
Expand All @@ -84,7 +91,7 @@ jobs:

build-python-wheels:
name: Stage Python Wheels
needs: [compute-versions, build-gateway, build-cluster]
needs: [compute-versions]
runs-on: build-amd64
timeout-minutes: 120
outputs:
Expand Down
29 changes: 10 additions & 19 deletions .github/workflows/release-tag.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,6 @@ jobs:
cargo_version: ${{ steps.v.outputs.cargo }}
# Semver without 'v' prefix (e.g. 0.6.0), used for image tags and release body
semver: ${{ steps.v.outputs.semver }}
previous_tag: ${{ steps.prev.outputs.tag }}
steps:
- uses: actions/checkout@v4
with:
Expand All @@ -63,19 +62,6 @@ jobs:
echo "cargo=$(uv run python tasks/scripts/release.py get-version --cargo)" >> "$GITHUB_OUTPUT"
echo "semver=${RELEASE_TAG#v}" >> "$GITHUB_OUTPUT"

- name: Find previous release tag
id: prev
run: |
set -euo pipefail
# List tags matching v*.*.* sorted by version descending, keep only
# stable releases (no pre-release suffixes like -rc1), skip the current tag
PREV=$(git tag --list 'v*.*.*' --sort=-version:refname \
| grep -P '^v\d+\.\d+\.\d+$' \
| grep -v "^${RELEASE_TAG}$" \
| head -n1 || true)
echo "tag=${PREV}" >> "$GITHUB_OUTPUT"
echo "Previous release tag: ${PREV:-"(none, first release)"}"

build-gateway:
needs: [compute-versions]
uses: ./.github/workflows/docker-build.yml
Expand All @@ -90,9 +76,16 @@ jobs:
component: cluster
cargo-version: ${{ needs.compute-versions.outputs.cargo_version }}

e2e:
needs: [build-gateway, build-cluster]
uses: ./.github/workflows/e2e-test.yml
with:
image-tag: ${{ github.sha }}
runner: build-arm64

tag-ghcr-release:
name: Tag GHCR Images for Release
needs: [compute-versions, build-gateway, build-cluster]
needs: [compute-versions, build-gateway, build-cluster, e2e]
runs-on: build-amd64
timeout-minutes: 10
steps:
Expand All @@ -118,7 +111,7 @@ jobs:

build-python-wheels:
name: Stage Python Wheels
needs: [compute-versions, build-gateway, build-cluster]
needs: [compute-versions]
runs-on: build-amd64
timeout-minutes: 120
outputs:
Expand Down Expand Up @@ -454,12 +447,10 @@ jobs:
name: OpenShell ${{ env.RELEASE_TAG }}
prerelease: false
tag_name: ${{ env.RELEASE_TAG }}
generate_release_notes: false
generate_release_notes: true
body: |
## OpenShell ${{ env.RELEASE_TAG }}

${{ needs.compute-versions.outputs.previous_tag != '' && format('**Full changelog**: [{0}...{1}](https://github.com/{2}/compare/{0}...{1})', needs.compute-versions.outputs.previous_tag, env.RELEASE_TAG, github.repository) || '' }}

### Quick install

Requires the [GitHub CLI (`gh`)](https://cli.github.com) to be installed and authenticated.
Expand Down
Loading