forked from jfrog/jfrog-cli
-
Notifications
You must be signed in to change notification settings - Fork 0
27 lines (23 loc) · 852 Bytes
/
Copy pathaddReleaseLinks.yml
File metadata and controls
27 lines (23 loc) · 852 Bytes
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
name: Add links on release
on:
release:
types: [created]
jobs:
add-links-on-release:
name: Add links on release
runs-on: ubuntu-latest
steps:
- name: Check out repository
uses: actions/checkout@v5
- name: Create markdown download links
run: |
# Remove the prefix 'v' from version.
RELEASE_VERSION=$(echo "${{ github.event.release.tag_name }}" | sed 's/^v//')
# Replace the place-holders '{version}' with the actual release version.
sed "s/{version}/$RELEASE_VERSION/g" ./.github/RELEASE_LINK_TEMPLATE.md > ./temp_releaseLinkTemplate.md
- name: Add links to release notes
uses: softprops/action-gh-release@v2
with:
token: ${{ secrets.GITHUB_TOKEN }}
body_path: "temp_releaseLinkTemplate.md"
append_body: true