-
Notifications
You must be signed in to change notification settings - Fork 7
39 lines (37 loc) · 1.24 KB
/
follow-filecoin-receipt-chain.yaml
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
name: Follow filecoin receipt chain for a given piece
on:
workflow_dispatch:
inputs:
piece_cid:
required: true
description: PieceCID to follow receipt chain
type: string
env:
required: true
description: The env to fetch metrics against. Default is production.
options:
- staging
- production
default: production
jobs:
follow-filecoin-receipt-chain:
name: Follow filecoin receipt chain for a given piece
runs-on: ubuntu-latest
timeout-minutes: 120
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
registry-url: 'https://registry.npmjs.org'
node-version: 18
cache: 'npm'
- run: npm ci
- name: Run job
env:
DEBUG: '*'
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
ENV: ${{ github.event.inputs.env }}
PIECE_CID: ${{ github.event.inputs.piece_cid }}
PRIVATE_KEY: ${{ github.event.inputs.env == 'production' && secrets.SERVICE_PRIVATE_KEY_PRODUCTION || secrets.SERVICE_PRIVATE_KEY_STAGING }}
run: npm run follow-filecoin-receipt-chain