9
0
Fork 0
mirror of https://code.forgejo.org/actions/forgejo-release synced 2026-02-14 10:37:02 +00:00
forgejo-release/testdata/release-notes-file/.forgejo/workflows/test.yml
2026-02-09 11:18:36 +01:00

44 lines
1.3 KiB
YAML

# 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