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
5 changes: 5 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,11 @@ permissions:
jobs:
# ── relctl: PR metadata + version preview ─────────────────────────────────
build-info:
# The reusable workflow posts relctl's help comment on the pull request and
# requests pull-requests: write; the caller must grant at least that.
permissions:
contents: read
pull-requests: write
uses: layer87-labs/relctl-action/.github/workflows/generate-build-infos.yml@main
secrets:
token: ${{ secrets.GITHUB_TOKEN }}
Expand Down
44 changes: 44 additions & 0 deletions .github/workflows/component-release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
name: Component release

# Creates the draft GitHub release of one relctl component (CalVer, own tag
# prefix, own counter). Called by release.yml; the caller builds the artifacts and
# publishes the release afterwards.
#
# relctl-action's create-release.yml has no `component` input yet, so relctl is
# called directly through the setup action.
on:
workflow_call:
inputs:
component:
description: "Component name from .relctl.yaml"
required: true
type: string
outputs:
release-id:
description: "ID of the draft release; empty when the release already exists"
value: ${{ jobs.release.outputs.release-id }}
version:
description: "Released version (CalVer, without the tag prefix)"
value: ${{ jobs.release.outputs.version }}

permissions:
contents: write

jobs:
release:
runs-on: ubuntu-latest
outputs:
release-id: ${{ steps.create.outputs.RELCTL_RELEASE_ID }}
version: ${{ steps.create.outputs.RELCTL_VERSION }}
steps:
- uses: actions/checkout@v7
with:
fetch-depth: 0 # CalVer counter and tags come from the git history

- name: Create release (${{ inputs.component }})
id: create
uses: layer87-labs/relctl-action@v1
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
relctl-version: "2.11.0"
run: relctl release create --component ${{ inputs.component }} --version-scheme calver >> $GITHUB_STEP_SUMMARY
155 changes: 0 additions & 155 deletions .github/workflows/release-models.yml

This file was deleted.

Loading
Loading