Client Request #2895
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: 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 @zorin.samji @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 }}"}]}' |