-
Notifications
You must be signed in to change notification settings - Fork 0
59 lines (46 loc) · 1.77 KB
/
draft_release_on_main.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
name: Build a draft release
on:
push:
branches: [ "main" ]
workflow_dispatch:
jobs:
create-release:
runs-on: ubuntu-latest
permissions:
contents: write
if: ${{ github.actor != 'dependabot[bot]' }} && ${{ github.actor != 'renovate[bot]' }}
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Retrieve app name & assets from config
run: |
APPNAME=$(jq -r '.name' "release.json")
echo "APPNAME=$APPNAME" >> $GITHUB_ENV
URLS=$(jq -r '.externalAssets[].url' "release.json")
for URL in $URLS; do
FILENAME=$(basename "$URL")
# Perform desired operations with the URL
# Example: Download the file
curl -L -o "./assets/$FILENAME" "$URL"
done
- name: Draft a release
uses: softprops/action-gh-release@v2
with:
name: ${{ env.RELVER }}
body: |
**!Important - review then remove this top section**
- [ ] Verify the resources from /assets are attached correctly to this release
- [ ] Set the tag to a semver matching the release (e.g. `v1.9.3`)
- [ ] Add any comments on breaking changes/ amends to the auto generated release notes below
- [ ] Delete this section
We are pleased to release ${{ env.APPNAME }}. Assets are attached to this release for your convenience.
## What's Changed
The following changes have been made for this release:
- Change 1.
- Change 2.
- Change 3.
draft: true
generate_release_notes: true
fail_on_unmatched_files: true
files: |
./assets/*