-
Notifications
You must be signed in to change notification settings - Fork 1
53 lines (48 loc) · 1.72 KB
/
Copy pathfi-fetch-workflow.yaml
File metadata and controls
53 lines (48 loc) · 1.72 KB
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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
name: FI fetch API Request - Workflow
on:
workflow_dispatch:
inputs:
fiu_token:
description: "Access token issued to FIU for initiating the consent request"
required: true
private_key:
description: "FIU private key for signing the request"
required: true
aa_recipient_id:
description: "Account Aggregator recipient ID"
default: "AA-SIMULATOR"
required: true
txn_id:
description: "Transaction ID"
required: true
session_id:
description: "Session ID"
required: true
jobs:
fi_fetch_workflow:
runs-on: ubuntu-latest
env:
TXN_ID: "${{ github.event.inputs.txn_id }}"
SESSION_ID: "${{ github.event.inputs.session_id }}"
PRIVATE_KEY: "${{ github.event.inputs.private_key }}"
FIU_TOKEN: "${{ github.event.inputs.fiu_token }}"
AA_RECIPIENT_ID: "${{ github.event.inputs.aa_recipient_id }}"
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: "19"
- name: Install Dependencies
run: npm install axios jose uuid
- name: Sign JWS and Send Request
run: node ./fiu-aa-workflow/fi-fetch.js
env:
CUSTOMER_ID: "${{ github.event.inputs.customer_id }}"
MOBILE_NUMBER: "${{ github.event.inputs.mobile_number }}"
PRIVATE_KEY: "${{ github.event.inputs.private_key }}"
FIU_TOKEN: "${{ github.event.inputs.fiu_token }}"
AA_RECIPIENT_ID: "${{ github.event.inputs.aa_recipient_id }}"
TXN_ID: "${{ github.event.inputs.txn_id }}"
SESSION_ID: "${{ github.event.inputs.session_id }}"