Skip to content

merge-dapp-lists

merge-dapp-lists #72

Workflow file for this run

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 --power config github.token "env:GITHUB_TOKEN"
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