Merge pull request #56 from galasa-dev/add-node-tolerations #12
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# | |
# Copyright contributors to the Galasa project | |
# | |
# SPDX-License-Identifier: EPL-2.0 | |
# | |
name: Trigger Helm workflow in Automation repository | |
on: | |
workflow_dispatch: | |
push: | |
branches: [main] | |
jobs: | |
trigger-workflow: | |
name: Trigger Helm workflow | |
runs-on: ubuntu-latest | |
permissions: write-all | |
steps: | |
- name: Trigger Helm workflow using GitHub CLI call | |
run: | | |
gh workflow run build-helm.yaml --repo https://github.com/galasa-dev/automation | |
env: | |
GH_TOKEN: ${{ secrets.GALASA_TEAM_GITHUB_TOKEN }} | |
report-failure: | |
name: Report failure in workflow | |
runs-on: ubuntu-latest | |
needs: trigger-workflow | |
if: failure() | |
steps: | |
- name: Report failure in workflow to Slack | |
env: | |
SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }} | |
run : | | |
docker run --rm -v ${{ github.workspace }}:/var/workspace ghcr.io/galasa-dev/galasabld-ibm:main slackpost workflows --repo "helm" --workflowName "${{ github.workflow }}" --workflowRunNum "${{ github.run_id }}" --ref "${{ env.BRANCH }}" --hook "${{ env.SLACK_WEBHOOK }}" | |