-
Notifications
You must be signed in to change notification settings - Fork 231
47 lines (45 loc) · 1.48 KB
/
allowlist.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
38
39
40
41
42
43
44
45
46
47
name: Allowlist Token
on:
workflow_call:
inputs:
network:
type: string
required: true
tokenAddress:
type: string
required: true
tokenSymbol:
type: string
required: false
jobs:
allowlist-token:
runs-on: ubuntu-latest
steps:
- name: Checkout repo
uses: actions/checkout@v3
with:
ref: main
- name: Use Node.js
uses: actions/setup-node@v1
with:
node-version: '16.x'
- name: Install deps
run: npm install cac
- name: Run allowlist script
run: npx tsx ./src/lib/scripts/allowlist-token.ts --network ${{inputs.network}} --tokenAddress \"${{inputs.tokenAddress}}\" --tokenSymbol "${{inputs.tokenSymbol}}"
- name: Create Pull Request
uses: peter-evans/create-pull-request@v4
with:
token: ${{ secrets.GITHUB_TOKEN }}
commit-message: 'chore: Add ${{ inputs.tokenSymbol }} to ${{ inputs.network }} allowlist'
committer: GitHub <noreply@github.com>
author: ${{ github.actor }} <${{ github.actor }}@users.noreply.github.com>
signoff: false
branch: update-allowlist-${{inputs.network}}-${{inputs.tokenAddress}}
base: main
delete-branch: true
title: 'Allowlist ${{inputs.tokenSymbol}} on ${{inputs.network}}'
body: |
This PR was autogenerated by the allowlist Github action.
draft: false
labels: allowlist