mirror of
https://code.forgejo.org/actions/forgejo-release
synced 2026-04-08 19:04:17 +00:00
feat: release notes from file (#141)
Reviewed-on: https://code.forgejo.org/actions/forgejo-release/pulls/141 Reviewed-by: Michael Kriese <michael.kriese@gmx.de> Co-authored-by: nihklas <nihklas@noreply.code.forgejo.org> Co-committed-by: nihklas <nihklas@noreply.code.forgejo.org>
This commit is contained in:
parent
94a60cb661
commit
8fb94f88a4
9 changed files with 125 additions and 0 deletions
44
testdata/release-notes-file/.forgejo/workflows/test.yml
vendored
Normal file
44
testdata/release-notes-file/.forgejo/workflows/test.yml
vendored
Normal file
|
|
@ -0,0 +1,44 @@
|
|||
# SPDX-License-Identifier: MIT
|
||||
|
||||
name: Upload a release with Release Notes to the project that runs the workflow
|
||||
on: [push]
|
||||
jobs:
|
||||
upload-download:
|
||||
runs-on: lxc-bookworm
|
||||
steps:
|
||||
- uses: actions/checkout@v6
|
||||
- if: ${{ !startsWith(github.ref, 'refs/tags/v') }}
|
||||
id: release-notes-file
|
||||
uses: SELF@vTest
|
||||
with:
|
||||
direction: upload
|
||||
tag: v1.0
|
||||
token: FORGEJO_TEST_TOKEN
|
||||
release-dir: upload-dir
|
||||
release-notes-file: upload-dir/RELEASE_NOTES.md
|
||||
verbose: true
|
||||
|
||||
- uses: actions/checkout@v6
|
||||
- if: ${{ !startsWith(github.ref, 'refs/tags/v') }}
|
||||
id: release-notes-file-takes-precedence
|
||||
uses: SELF@vTest
|
||||
with:
|
||||
direction: upload
|
||||
tag: v2.0
|
||||
token: FORGEJO_TEST_TOKEN
|
||||
release-dir: upload-dir
|
||||
release-notes: "I wont be there"
|
||||
release-notes-file: upload-dir/RELEASE_NOTES.md
|
||||
verbose: true
|
||||
|
||||
- uses: actions/checkout@v6
|
||||
- if: ${{ !startsWith(github.ref, 'refs/tags/v') }}
|
||||
id: release-notes
|
||||
uses: SELF@vTest
|
||||
with:
|
||||
direction: upload
|
||||
tag: v3.0
|
||||
token: FORGEJO_TEST_TOKEN
|
||||
release-dir: upload-dir
|
||||
release-notes: "I will be there"
|
||||
verbose: true
|
||||
1
testdata/release-notes-file/.gitignore
vendored
Normal file
1
testdata/release-notes-file/.gitignore
vendored
Normal file
|
|
@ -0,0 +1 @@
|
|||
*~
|
||||
12
testdata/release-notes-file/upload-dir/RELEASE_NOTES.md
vendored
Normal file
12
testdata/release-notes-file/upload-dir/RELEASE_NOTES.md
vendored
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
# This is a Release Note
|
||||
|
||||
Some *formatted*,
|
||||
|
||||
multiline
|
||||
|
||||
Markdown content.
|
||||
|
||||
```bash
|
||||
echo "Even a code block"
|
||||
```
|
||||
|
||||
1
testdata/release-notes-file/upload-dir/file 3.txt
vendored
Normal file
1
testdata/release-notes-file/upload-dir/file 3.txt
vendored
Normal file
|
|
@ -0,0 +1 @@
|
|||
FILE3
|
||||
1
testdata/release-notes-file/upload-dir/file1.txt
vendored
Normal file
1
testdata/release-notes-file/upload-dir/file1.txt
vendored
Normal file
|
|
@ -0,0 +1 @@
|
|||
FILE1
|
||||
1
testdata/release-notes-file/upload-dir/file2.txt
vendored
Normal file
1
testdata/release-notes-file/upload-dir/file2.txt
vendored
Normal file
|
|
@ -0,0 +1 @@
|
|||
FILE2
|
||||
Loading…
Add table
Add a link
Reference in a new issue