Skip to content

Commit 1200a95

Browse files
refactor: align names and add notify slack workflow
1 parent 02c91f1 commit 1200a95

7 files changed

Lines changed: 31 additions & 75 deletions

.github/workflows/check-oas-for-drift.yml

Lines changed: 3 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -56,16 +56,8 @@ jobs:
5656

5757
notify-slack-on-failure:
5858
name: Notify Slack on Failure
59-
runs-on: ubuntu-24.04
6059
needs: [ check-oas-for-drift ]
61-
permissions: {}
6260
if: failure()
63-
steps:
64-
- name: Send Slack alert
65-
uses: slackapi/slack-github-action@45a88b9581bfab2566dc881e2cd66d334e621e2c # v3.0.3
66-
with:
67-
webhook: ${{ secrets.GH_WORKFLOW_FAILURE_BOT_SLACK_WEBHOOK_URL }}
68-
webhook-type: incoming-webhook
69-
payload: |
70-
"repository": "${{ github.repository }}"
71-
"run": ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}
61+
uses: ./.github/workflows/notify-slack-on-failure.yml
62+
secrets:
63+
GH_WORKFLOW_FAILURE_BOT_SLACK_WEBHOOK_URL: ${{ secrets.GH_WORKFLOW_FAILURE_BOT_SLACK_WEBHOOK_URL }}

.github/workflows/conformance.yml

Lines changed: 0 additions & 58 deletions
This file was deleted.
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
name: Notify Slack on Failure
2+
3+
on:
4+
workflow_call:
5+
secrets:
6+
GH_WORKFLOW_FAILURE_BOT_SLACK_WEBHOOK_URL:
7+
required: true
8+
9+
jobs:
10+
notify-slack-on-failure:
11+
name: Notify Slack on Failure
12+
runs-on: ubuntu-24.04
13+
permissions: {}
14+
steps:
15+
- name: Send Slack alert
16+
uses: slackapi/slack-github-action@45a88b9581bfab2566dc881e2cd66d334e621e2c # v3.0.3
17+
with:
18+
webhook: ${{ secrets.GH_WORKFLOW_FAILURE_BOT_SLACK_WEBHOOK_URL }}
19+
webhook-type: incoming-webhook
20+
payload: |
21+
"repository": "${{ github.repository }}"
22+
"run": ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}

.github/workflows/status-list-mock-check-oas-for-drift.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,6 @@ jobs:
5050
name: Notify Slack on Failure
5151
needs: [ check-oas-for-drift ]
5252
if: failure()
53-
uses: ./.github/workflows/status-list-mock-notify-slack-on-failure.yml
53+
uses: ./.github/workflows/notify-slack-on-failure.yml
5454
secrets:
5555
GH_WORKFLOW_FAILURE_BOT_SLACK_WEBHOOK_URL: ${{ secrets.GH_WORKFLOW_FAILURE_BOT_SLACK_WEBHOOK_URL }}

.github/workflows/status-list-mock-conformance.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ jobs:
2323
conformance-tests:
2424
name: Prism Conformance Tests (${{ inputs.environment || 'build' }})
2525
runs-on: ubuntu-24.04
26-
timeout-minutes: 10
26+
timeout-minutes: 15
2727
permissions:
2828
contents: read
2929
env:
@@ -35,7 +35,7 @@ jobs:
3535
- name: Set up Node.js
3636
uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6.4.0
3737
with:
38-
node-version-file: status-list-mock/.nvmrc
38+
node-version-file: .nvmrc
3939
cache: npm
4040
cache-dependency-path: package-lock.json
4141

@@ -53,6 +53,6 @@ jobs:
5353
name: Notify Slack on Failure
5454
needs: [ conformance-tests ]
5555
if: failure()
56-
uses: ./.github/workflows/status-list-mock-notify-slack-on-failure.yml
56+
uses: ./.github/workflows/notify-slack-on-failure.yml
5757
secrets:
5858
GH_WORKFLOW_FAILURE_BOT_SLACK_WEBHOOK_URL: ${{ secrets.GH_WORKFLOW_FAILURE_BOT_SLACK_WEBHOOK_URL }}

.github/workflows/status-list-mock-pull-request-checks.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ jobs:
104104

105105
check-oas-for-drift:
106106
name: Check Status List OAS for drift
107-
uses: check-oas-for-drift.yml
107+
uses: status-list-mock-check-oas-for-drift.yml
108108
if: github.event.pull_request.user.login != 'dependabot[bot]'
109109
secrets:
110110
WALLET_CRS_DEPLOY_KEY: ${{ secrets.WALLET_CRS_DEPLOY_KEY }}

.github/workflows/sts-mock-pull-request-checks.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ jobs:
6363

6464
check-oas-for-drift:
6565
name: Check STS Back OAS for drift
66-
uses: check-oas-for-drift.yml
66+
uses: sts-check-oas-for-drift.yml
6767
if: github.event.pull_request.user.login != 'dependabot[bot]'
6868
secrets:
6969
WALLET_STS_BACK_DEPLOY_KEY: ${{ secrets.WALLET_STS_BACK_DEPLOY_KEY }}

0 commit comments

Comments
 (0)