File: package-build-on-release.yml

package info (click to toggle)
python-gvm 26.9.1-1
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 5,316 kB
  • sloc: python: 46,784; makefile: 18
file content (48 lines) | stat: -rw-r--r-- 1,704 bytes parent folder | download | duplicates (7)
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