Skip to content

Commit

Permalink
feat: add notice generation in CI
Browse files Browse the repository at this point in the history
Signed-off-by: Svetoslav Borislavov <svetoslav.borislavov@limechain.tech>
  • Loading branch information
SvetBorislavov committed Nov 19, 2024
1 parent 82a7cf1 commit d57b192
Showing 1 changed file with 45 additions and 0 deletions.
45 changes: 45 additions & 0 deletions .github/workflows/update-notice.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
name: Update Notice

on:
push:
branches:
- main
pull_request:
branches:
- main
workflow_dispatch:

defaults:
run:
shell: bash

permissions:
contents: read

concurrency:
group: pr-checks-${{ github.workflow }}-${{ github.head_ref || github.run_id }}
cancel-in-progress: true

jobs:
generate-notice:
name: Notice Generation
runs-on: transaction-tools-linux-medium
steps:
- name: Harden Runner
uses: step-security/harden-runner@63c24ba6bd7ba022e95695ff85de572c04a18142 # v2.7.0
with:
egress-policy: audit

- name: Checkout code
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2

- name: Set up Node.js
uses: actions/setup-node@60edb5dd545a775178f52524783378180af0d1f8 # v4.0.2
with:
node-version: 20
cache: 'pnpm'
cache-dependency-path: |
back-end/pnpm-lock.yaml
- name: Generate Notice
run: node ./notice-gen/index.js

0 comments on commit d57b192

Please sign in to comment.