@cryptotaxi247 / netdata-1 / commits / 9a0b5fee7

Trigger subsequent workflows for Helmchart and MSI (#17224)

--------- Signed-off-by: Tasos Katsoulas <tasos@netdata.cloud>

Tasos Katsoulas committed Mar 27, 2024 at 15:07 UTC 9a0b5fee74002a9f9ece224e0fe151439930d60e
1 file changed +55
.github/workflows/docker.yml
+55
@@ -667,3 +667,58 @@ jobs:
667 failure()
668 && github.repository == 'netdata/netdata'
669 }}
670 +
671 + trigger-subsequent-workflows:
672 + if: github.event_name == 'workflow_dispatch'
673 + name: Trigger subsquent workflows for newly added versions
674 + needs:
675 + - publish-docker-hub
676 + - gen-tags
677 + runs-on: ubuntu-latest
678 + steps:
679 + - name: Checkout
680 + id: checkout
681 + uses: actions/checkout@v4
682 + with:
683 + submodules: recursive
684 + - name: Trigger Helmchart PR
685 + if: github.event_name == 'workflow_dispatch' && github.event.inputs.version != 'nightly' && github.repository == 'netdata/netdata'
686 + id: trigger-helmchart
687 + uses: benc-uk/workflow-dispatch@v1
688 + with:
689 + token: ${{ secrets.NETDATABOT_GITHUB_TOKEN }}
690 + repo: netdata/helmchart
691 + workflow: Agent Version PR
692 + ref: refs/heads/master
693 + inputs: '{"agent_version": "${{ needs.gen-tags.outputs.tags }}"}'
694 + - name: Trigger MSI build
695 + if: github.event_name == 'workflow_dispatch' && github.event.inputs.version != 'nightly' && github.repository == 'netdata/netdata'
696 + id: trigger-msi
697 + uses: benc-uk/workflow-dispatch@v1
698 + with:
699 + token: ${{ secrets.NETDATABOT_GITHUB_TOKEN }}
700 + repo: netdata/msi-installer
701 + workflow: Build
702 + ref: refs/heads/master
703 + inputs: '{"tag": "${{ needs.gen-tags.outputs.tags }}", "pwd": "${{ secrets.MSI_CODE_SIGNING_PASSWORD }}"}'
704 + - name: Failure Notification
705 + uses: rtCamp/action-slack-notify@v2
706 + env:
707 + SLACK_COLOR: 'danger'
708 + SLACK_FOOTER: ''
709 + SLACK_ICON_EMOJI: ':github-actions:'
710 + SLACK_TITLE: ':'
711 + SLACK_USERNAME: 'GitHub Actions'
712 + SLACK_MESSAGE: |-
713 + ${{ github.repository }}: Version cascade failed
714 + Checkout: ${{ steps.checkout.outcome }}
715 + Trigger Helmchart PR: ${{ steps.trigger-helmchart.outcome }}
716 + Trigger MSI build: ${{ steps.trigger-msi.outcome }}
717 + SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK_URL }}
718 + if: >-
719 + ${{
720 + failure()
721 + && github.event_name != 'pull_request'
722 + && startsWith(github.ref, 'refs/heads/master')
723 + && github.repository == 'netdata/netdata'
724 + }}