-
Notifications
You must be signed in to change notification settings - Fork 469
58 lines (53 loc) · 1.53 KB
/
backfill-release-notes.yml
File metadata and controls
58 lines (53 loc) · 1.53 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
51
52
53
54
55
56
57
58
name: Backfill release notes
on:
workflow_call:
inputs:
tag:
description: Release tag to refresh (e.g. v2.100.1)
required: true
type: string
apply:
description: Update the GitHub release body (otherwise dry-run only)
required: false
type: boolean
default: false
non_blocking:
description: Do not fail the workflow run when backfill fails (release pipeline)
required: false
type: boolean
default: false
workflow_dispatch:
inputs:
tag:
description: Release tag to refresh (e.g. v2.100.1)
required: true
type: string
apply:
description: Update the GitHub release body (otherwise dry-run only)
required: false
type: boolean
default: false
permissions:
contents: read
jobs:
backfill:
runs-on: ubuntu-latest
continue-on-error: ${{ inputs.non_blocking }}
permissions:
contents: write
env:
TAG: ${{ inputs.tag }}
GH_TOKEN: ${{ github.token }}
steps:
- uses: useblacksmith/checkout@41cdeedae8edb2e684ba22896a5fd2a3cb85db6b # v1
with:
fetch-depth: 0
persist-credentials: false
- uses: ./.github/actions/setup
- name: Backfill release notes
run: |
if [ "${{ inputs.apply }}" = "true" ]; then
bun apps/cli/scripts/backfill-release-notes.ts --tag "${TAG}" --apply
else
bun apps/cli/scripts/backfill-release-notes.ts --tag "${TAG}"
fi