forked from microsoft/FluidFramework
-
Notifications
You must be signed in to change notification settings - Fork 3
83 lines (72 loc) · 2.62 KB
/
release-notes-issue.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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
name: "Update release notes issue"
on:
push:
branches:
- main
paths:
- ".changeset/**"
# Allow manually triggering this workflow from the web UI
workflow_dispatch:
inputs:
issueNumber:
description: 'Issue number to update'
default: 26
required: true
permissions:
contents: write
jobs:
create-issue:
name: Create GitHub release
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # ratchet:actions/checkout@v3
with:
fetch-depth: "100" # all history
persist-credentials: false
- uses: pnpm/action-setup@fe02b34f77f8bc703788d5817da081398fad5dd2 # ratchet:pnpm/action-setup@v4
- uses: actions/setup-node@1a4442cacd436585916779262731d5b162bc6ec7 # ratchet:actions/setup-node@v3
with:
node-version-file: .nvmrc
cache: "pnpm"
cache-dependency-path: pnpm-lock.yaml
- name: Install Fluid build tools
continue-on-error: true
run: |
cd build-tools
pnpm install --frozen-lockfile
pnpm run build:compile
# We want flub available to call, so we run npm link in the build-cli package, which creates shims that are avilable on the PATH
# Use npm link instead of pnpm link because it handles bins better
cd packages/build-cli
npm link
- name: Check build-tools installation
run: |
# Info for debugging
which flub
flub --help
flub commands
- name: Generate release notes file
run: |
flub generate releaseNotes -g client -t minor --out RELEASE_NOTES.md -v
- name: Read release notes file
id: relNotes
uses: juliangruber/read-file-action@v1
with:
path: ./RELEASE_NOTES.md
- name: Echo package.json
run: echo ""
# - name: Set issue number from push
# if: github.event_name == 'push'
# run: echo "ISSUE_NUMBER=${GITHUB_REF}" >> $GITHUB_ENV
# - name: Set issue number from manual input
# if: github.event_name == 'workflow_dispatch'
# run: echo "TAG_NAME=refs/tags/${{ github.event.inputs.tag }}" >> $GITHUB_ENV
- name: Update Issue Body
uses: julien-deramond/update-issue-body@v1
with:
issue-number: 26
body: ${{ steps.relNotes.outputs.content }}
edit-mode: replace
# - uses: JasonEtco/create-an-issue@v2
# env:
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # This job checks that PR template placeholder content has been removed from the PR body.