1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48
|
# SPDX-FileCopyrightText: 2025 Greenbone AG
# SPDX-License-Identifier: AGPL-3.0-or-later
# HINT: this is a central workflow over many components and teams.
# on failure, ask devops.
name: Trigger package build on release
on:
release:
types: [released]
permissions:
contents: read
packages: write
id-token: write
pull-requests: write
jobs:
call_packaging_workflow:
name: Call Packaging workflow
runs-on: "ubuntu-latest"
steps:
- name: DEBUG - shot release data
run: |
echo "release name: ${{ github.event.release.name }}"
echo "release body: ${{ github.event.release.body }}"
echo "release id: ${{ github.event.release.id }}"
echo "release tag_name: ${{ github.event.release.tag_name }}"
echo "release target_commitish: ${{ github.event.release.target_commitish }}"
- name: Trigger development-packaging workflow
uses: greenbone/actions/trigger-workflow@v3
with:
token: ${{ secrets.GREENBONE_BOT_TOKEN }}
repository: "greenbone/gea-pipeline"
ref: "main"
workflow: development-packaging.yml
inputs: '{"release-name": "${{ github.event.release.name }}", "component-repo-name-to-package": "${{ github.repository }}", "release-tag": "${{ github.event.release.tag_name }}"}'
wait-for-completion-timeout: 10000
notify:
needs:
- call_packaging_workflow
if: ${{ !cancelled() }}
uses: greenbone/workflows/.github/workflows/notify-mattermost-generic.yml@main
with:
status: ${{ contains(needs.*.result, 'failure') && 'failure' || 'success' }}
channel: gea-pipeline-notifications
secrets: inherit
|