-
Notifications
You must be signed in to change notification settings - Fork 0
51 lines (46 loc) · 1.39 KB
/
joint-release.yml
File metadata and controls
51 lines (46 loc) · 1.39 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
name: Generate Joint Release Notes
on:
push:
tags:
- '*.*.*'
workflow_dispatch:
jobs:
build-release-notes:
runs-on: ubuntu-latest
permissions:
contents: write
pull-requests: write
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Install yq
run: |
sudo wget -qO /usr/local/bin/yq \
https://github.com/mikefarah/yq/releases/latest/download/yq_linux_amd64
sudo chmod +x /usr/local/bin/yq
- name: Generate Notes
env:
GH_TOKEN: ${{ secrets.READ_ALL_TOKEN }}
ORG: "transpara"
INSTALLER_REPO: "tinstaller-releases"
OUTPUT_FILE: "JOINT_RELEASE_NOTES.md"
run: |
# Resolve the target tag from the trigger context
if [[ "${{ github.ref_type }}" == "tag" ]]; then
bash scripts/generate-release-notes.sh "${{ github.ref_name }}"
else
bash scripts/generate-release-notes.sh
fi
echo "::group::Generated Release Notes"
cat JOINT_RELEASE_NOTES.md
echo "::endgroup::"
- name: Update Release
uses: softprops/action-gh-release@v1
with:
tag_name: ${{ env.target_tag }}
body_path: JOINT_RELEASE_NOTES.md
append_body: true
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}