Merge pull request #534 from gridsingularity/feature/GSYE-731 #196
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
name: gsy-framework-interface-ci-cd-development | |
on: | |
push: | |
branches: | |
- master | |
jobs: | |
build-deploy: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Trigger gsy-e and gsy-web deployment | |
shell: bash | |
run: | | |
curl -X POST --header "authorization: Bearer ${{ secrets.GSYDEV_TOKEN }}" \ | |
-H 'Accept: application/json' \ | |
https://api.github.com/repos/gridsingularity/gsy-web/actions/workflows/gsy-e-development.yaml/dispatches \ | |
-d '{"ref":"refs/heads/master"}' | |
- name: Trigger d3a-web deployment | |
shell: bash | |
run: | | |
curl -X POST --header "authorization: Bearer ${{ secrets.GSYDEV_TOKEN }}" \ | |
-H 'Accept: application/json' \ | |
https://api.github.com/repos/gridsingularity/gsy-web/actions/workflows/gsy-web-development.yaml/dispatches \ | |
-d '{"ref":"refs/heads/master"}' | |
- name: Notify slack fail | |
if: failure() | |
env: | |
SLACK_BOT_TOKEN: ${{ secrets.SLACK_BOT_TOKEN }} | |
uses: voxmedia/github-action-slack-notify-build@v1 | |
with: | |
channel: dev_cicd_errors | |
status: FAILED | |
color: danger |