Skip to content

3 - Trigger Catalog Build #1

3 - Trigger Catalog Build

3 - Trigger Catalog Build #1

name: Trigger Catalog Build
on:
workflow_dispatch:
inputs:
TARGET_BRANCH:
description: 'RELEASE_BRANCH to checkout (e.g. release-1.17)'
required: true
type: string
# For reusable workflows
workflow_call:
inputs:
TARGET_BRANCH:
required: true
type: string
permissions:
contents: write
pull-requests: write
jobs:
generate-catalog:
name: Generate Catalog for ${{ inputs.TARGET_BRANCH }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install skopeo
run: |
sudo apt-get update
sudo apt-get install -y skopeo podman
- name: Generate catalog
shell: bash
run: make catalog
- name: Prepare metadata for PR
id: metadata
run: |
BUILD=$(cat BUILD)
TIMESTAMP=$(date -u +"%Y%m%d-%H%M%S")
echo "build=$BUILD" >> $GITHUB_OUTPUT
echo "ts=$TIMESTAMP" >> $GITHUB_OUTPUT
- name: Create catalog pull request
uses: peter-evans/create-pull-request@v6
with:
token: ${{ secrets.GITHUB_TOKEN }}
path: catalog
commit-message: "chore(nightly): update catalog for build ${{ steps.metadata.outputs.build }}"
branch: build/catalog-${{ steps.metadata.outputs.build }}-${{ steps.metadata.outputs.ts }}
delete-branch: true
title: "chore(nightly): update catalog for build ${{ steps.metadata.outputs.build }}"
committer: "github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>"
author: "github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>"
body: |
This PR updates the catalog using the nightly bundle build.
Please **do not merge** this PR. It is auto-generated to trigger a catalog build from Konflux.
Separate PRs will be created for staging and production bundle updates.
**Build:** `${{ steps.metadata.outputs.build }}`
**Timestamp:** `${{ steps.metadata.outputs.ts }}`
Automatically generated by GitHub Actions.
labels: |
do-not-merge
nightly