Skip to content

Commit 167fd34

Browse files
authored
CI: package build workflow v2 (#1284)
package build trigger v2
1 parent d09b9c7 commit 167fd34

File tree

1 file changed

+22
-1
lines changed

1 file changed

+22
-1
lines changed

.github/workflows/package-build-on-release.yml

Lines changed: 22 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
# SPDX-FileCopyrightText: 2025 Greenbone AG
2+
# SPDX-License-Identifier: AGPL-3.0-or-later
3+
14
# HINT: this is a central workflow over many components and teams.
25
# on failure, ask devops.
36
name: Trigger package build on release
@@ -16,12 +19,30 @@ jobs:
1619
name: Call Packaging workflow
1720
runs-on: "ubuntu-latest"
1821
steps:
22+
- name: DEBUG - shot release data
23+
run: |
24+
echo "release name: ${{ github.event.release.name }}"
25+
echo "release body: ${{ github.event.release.body }}"
26+
echo "release id: ${{ github.event.release.id }}"
27+
echo "release tag_name: ${{ github.event.release.tag_name }}"
28+
echo "release target_commitish: ${{ github.event.release.target_commitish }}"
29+
1930
- name: Trigger development-packaging workflow
2031
uses: greenbone/actions/trigger-workflow@v3
2132
with:
2233
token: ${{ secrets.GREENBONE_BOT_TOKEN }}
2334
repository: "greenbone/gea-pipeline"
2435
ref: "main"
2536
workflow: development-packaging.yml
26-
inputs: '{"release-info": "${{ github.event.release.name }}", "component-repo-name-to-package": "${{ github.repository }}"}'
37+
inputs: '{"release-name": "${{ github.event.release.name }}", "component-repo-name-to-package": "${{ github.repository }}", "release-tag": "${{ github.event.release.tag_name }}"}'
2738
wait-for-completion-timeout: 10000
39+
40+
notify:
41+
needs:
42+
- call_packaging_workflow
43+
if: ${{ !cancelled() }}
44+
uses: greenbone/workflows/.github/workflows/notify-mattermost-generic.yml@main
45+
with:
46+
status: ${{ contains(needs.*.result, 'failure') && 'failure' || 'success' }}
47+
channel: gea-pipeline-notifications
48+
secrets: inherit

0 commit comments

Comments
 (0)