forked from medic/cht-core
-
Notifications
You must be signed in to change notification settings - Fork 0
50 lines (46 loc) · 1.48 KB
/
release-notes.yml
File metadata and controls
50 lines (46 loc) · 1.48 KB
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
50
name: Release notes generator
on:
workflow_dispatch:
inputs:
milestone:
description: 'Milestone to build release notes from'
type: string
required: true
skip_commit_checks:
description: 'Skip commit checks - empty string means run checks'
default: ''
type: choice
options:
- ''
- '--skip-commit-validation'
permissions:
contents: read
jobs:
release_notes:
runs-on: ubuntu-latest
steps:
- name: Checkout Code
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
persist-credentials: false
- name: Use Node 24
uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6.4.0 # zizmor: ignore[cache-poisoning]
with:
node-version: 24
- name: Install Deps & Run Node Script
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
MILESTONE: ${{ github.event.inputs.milestone }}
SKIP_COMMIT_CHECKS: ${{ github.event.inputs.skip_commit_checks }}
run: |
cd scripts
npm ci
cd release-notes
node index.js "$MILESTONE" $SKIP_COMMIT_CHECKS
- name: Upload release note artifacts
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
with:
name: release-notes
path: ./scripts/release-notes/release-notes.md
retention-days: 10
compression-level: 0