generated from bcgov-c/bcgov-terraform-module-template
-
Notifications
You must be signed in to change notification settings - Fork 1
37 lines (31 loc) · 1.34 KB
/
request.yml
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
name: Client Request
on:
workflow_dispatch:
inputs:
integration:
description: Integration Payload
required: true
jobs:
request-client:
runs-on: ubuntu-22.04
steps:
- uses: hmarr/debug-action@v2
- uses: actions/checkout@v2
- name: Setup Tools
uses: bcgov/sso-requests-actions/actions/setup-tools@v0.63.0
- name: Setup NPM Packages
uses: bcgov/sso-requests-actions/actions/setup-yarn@v0.63.0
- uses: bcgov/sso-requests-actions/request@v0.63.0
with:
github-token: ${{ secrets.GH_ACCESS_TOKEN || secrets.GITHUB_TOKEN }}
api-url: ${{ secrets.WEBAPP_API_URL }}
auth-secret: ${{ secrets.GH_SECRET }}
tf-module-ref: main
- name: Rocket.Chat Notification
if: failure()
uses: fjogeleit/http-request-action@master
with:
url: ${{ secrets.RC_SSO_ALERTS_WEBHOOK }}
method: POST
customHeaders: '{"Content-Type": "application/json"}'
data: '{"text": "Terraform Client Request Failed! @jsharman @Marco @nithinshekar.kuruba", "attachments": [{"color": "#FF0000","author_name": "${{ github.actor }}", "title": "Failed job", "title_link": "${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}", "text": "${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}"}]}'