-
Notifications
You must be signed in to change notification settings - Fork 10
49 lines (45 loc) · 1.32 KB
/
merge-dapp.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
48
49
name: merge-dapp-lists
on:
workflow_call:
inputs:
message:
description: "Commit message"
required: true
type: string
workflow_dispatch:
inputs:
message:
description: "Commit message"
required: true
type: string
env:
GITHUB_TOKEN: ${{ secrets.CI_BOT_TOKEN }}
jobs:
merge:
runs-on: ubuntu-latest
name: Merge dApps assets lists
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: coursier/cache-action@v6
- uses: VirtusLab/scala-cli-setup@main
with:
jvm: zulu:19
- name: Validate and merge assets lists
#
# Small hack to inject our GitHub packages token.
# https://github.com/VirtusLab/scala-cli/issues/1464
#
run: |
perl -i -pe 's/{{ GITHUB_TOKEN }}/$ENV{GITHUB_TOKEN}/' .github/scripts/validate-and-merge-cli.scala
scala-cli .github/scripts/validate-and-merge-cli.scala --main-class main -- all-dapp-allowlist.json
- name: Commit and push merged list
uses: EndBug/add-and-commit@v9
with:
add: "all-dapp-allowlist.json"
author_name: ldg-github-ci
author_email: none@ledger.fr
default_author: github_actor
message: "${{ inputs.message }}"
push: true