fix(ci): enable auto-release workflow
All checks were successful
Build / build-amd64 (push) Successful in 2m21s
Lint Markdown files / markdown-lint (push) Successful in 5s
Build / build-arm64 (push) Successful in 7m3s

This commit is contained in:
2025-10-24 17:21:03 +02:00
parent 5740bd1782
commit 2f08126ac7
2 changed files with 25 additions and 15 deletions

View File

@@ -52,13 +52,19 @@ jobs:
git push origin "${defined_tag}"
- name: Trigger "Push tagged images" workflow
if: steps.check_change.outputs.changed == 'true'
uses: peter-evans/repository-dispatch@v4.0.0
uses: actions/github-script@v8.0.0
with:
client-payload: |
{
"tag": "${{ steps.bump.outputs.defined_tag }}"
}
event-type: push-tagged-images
repository: ${{ github.repository }}
token: ${{ github.token }}
script: |
const workflowFileName = 'release.yaml';
const defaultBranch = context.payload.repository.default_branch;
const definedTag = '${{ steps.create_tag.outputs.defined_tag }}';
await github.rest.actions.createWorkflowDispatch({
owner: context.repo.owner,
repo: context.repo.repo,
workflow_id: workflowFileName,
ref: defaultBranch,
inputs: {
tag: "definedTag"
}
});

View File

@@ -4,8 +4,12 @@ on:
push:
tags:
- "**"
repository_dispatch:
types: [ push-tagged-images ]
workflow_dispatch:
inputs:
tag:
description: "Tag which should be released"
type: string
required: true
jobs:
push-arm64:
@@ -14,7 +18,7 @@ jobs:
- id: version_extraction
name: Extract git tag
run: |
VERSION="${{ github.event.client_payload.tag || github.ref_name }}"
VERSION="${{ inputs.tag || github.ref_name }}"
VERSION="${VERSION#refs/*/}"
echo "Version: ${VERSION}"
echo "version=${VERSION}" >> $GITHUB_OUTPUT
@@ -52,7 +56,7 @@ jobs:
- id: version_extraction
name: Extract git tag
run: |
VERSION="${{ github.event.client_payload.tag || github.ref_name }}"
VERSION="${{ inputs.tag || github.ref_name }}"
VERSION="${VERSION#refs/*/}"
echo "Version: ${VERSION}"
echo "version=${VERSION}" >> $GITHUB_OUTPUT
@@ -93,7 +97,7 @@ jobs:
- id: version_extraction
name: Extract git tag
run: |
VERSION="${{ github.event.client_payload.tag || github.ref_name }}"
VERSION="${{ inputs.tag || github.ref_name }}"
VERSION="${VERSION#refs/*/}"
echo "Version: ${VERSION}"
echo "version=${VERSION}" >> $GITHUB_OUTPUT
@@ -120,7 +124,7 @@ jobs:
- id: version_extraction
name: Extract git tag
run: |
VERSION="${{ github.event.client_payload.tag || github.ref_name }}"
VERSION="${{ inputs.tag || github.ref_name }}"
VERSION="${VERSION#refs/*/}"
echo "Version: ${VERSION}"
echo "version=${VERSION}" >> $GITHUB_OUTPUT