Compare commits

...

7 commits

Author SHA1 Message Date
Earl Warren
32debc27f9
chore: teach renovate about release-notes-assistant 2025-07-27 08:51:25 +02:00
Earl Warren
2b1b059591
fix(ci): test logic requires that tags start with a v 2025-07-26 07:05:42 +02:00
Earl Warren
428b5e175f
fix(ci): do not use the same tag for different workflows 2025-07-26 06:51:13 +02:00
Earl Warren
efc7c9870c
fix(ci): move slash test to the end
otherwise it will have a side effect on the test that checks for the
latest release
2025-07-26 06:43:45 +02:00
Earl Warren
a34fc370c5
fix(ci): no need to test for overrides twice 2025-07-26 06:33:04 +02:00
Earl Warren
a15345a411
fix(ci): do not test tags with / with RNA
it does not make for a valid semver
2025-07-26 05:40:23 +02:00
Earl Warren
4c6f19bc61
fix(ci): s/FORGEJO_TOKEN/FORGEJO_TEST_TOKEN/ 2025-07-25 13:46:02 +02:00
5 changed files with 22 additions and 30 deletions

View file

@ -19,6 +19,8 @@ if ${VERBOSE:-false}; then set -x; fi
: ${RETRY:=1}
: ${DELAY:=10}
RELEASE_NOTES_ASSISTANT_VERSION=v1.3.3 # renovate: datasource=forgejo-releases depName=forgejo/release-notes-assistant registryUrl=https://code.forgejo.org
TAG_FILE="$TMP_DIR/tag$$.json"
TAG_URL=$(echo "$TAG" | sed 's/\//%2F/g')
@ -116,7 +118,7 @@ release_draft() {
maybe_use_release_note_assistant() {
if "$RELEASE_NOTES_ASSISTANT"; then
curl --fail -s -S -o rna https://code.forgejo.org/forgejo/release-notes-assistant/releases/download/v1.2.3/release-notes-assistant
curl --fail -s -S -o rna https://code.forgejo.org/forgejo/release-notes-assistant/releases/download/$RELEASE_NOTES_ASSISTANT_VERSION/release-notes-assistant
chmod +x ./rna
./rna --storage release --storage-location "$TAG" --forgejo-url "$SCHEME"://placeholder:"$TOKEN"@"$HOST" --repository $REPO --token "$TOKEN" release "$TAG"
fi

View file

@ -98,7 +98,7 @@ jobs:
uses: SELF@vTest
with:
direction: upload
tag: v1.2
tag: v1.3
token: FORGEJO_TEST_TOKEN
release-dir: upload-dir
release-notes: "RELEASE NOTES"
@ -109,7 +109,7 @@ jobs:
uses: SELF@vTest
with:
direction: download
tag: v1.2
tag: v1.3
token: FORGEJO_TEST_TOKEN
release-dir: download-dir
verbose: true

View file

@ -4,7 +4,7 @@ name: Upload (and download) a release to (and from) the project that runs the wo
on: [push]
jobs:
upload-download:
runs-on: self-hosted
runs-on: lxc-bookworm
steps:
- uses: actions/checkout@v4
- if: ${{ !startsWith(github.ref, 'refs/tags/v') }}
@ -45,28 +45,6 @@ jobs:
- \backslash escape
- !exclamation_mark
verbose: true
- if: ${{ !startsWith(github.ref, 'refs/tags/v') }}
id: release-upload-slash-in-tag
uses: SELF@vTest
with:
direction: upload
tag: a/v3.0
token: FORGEJO_TOKEN
release-dir: upload-dir
release-notes: "RELEASE NOTES"
verbose: true
- if: ${{ !startsWith(github.ref, 'refs/tags/v') }}
id: release-upload-override-slash-in-tag
uses: SELF@vTest
with:
direction: upload
tag: a/v3.0
token: FORGEJO_TOKEN
release-dir: upload-dir
release-notes-assistant: true
hide-archive-link: true
override: true
verbose: true
- if: ${{ !startsWith(github.ref, 'refs/tags/v') }}
id: release-download
uses: SELF@vTest
@ -91,18 +69,28 @@ jobs:
- if: ${{ !startsWith(github.ref, 'refs/tags/v') }}
run: |
diff -u upload-dir-v2 download-dir-v2
- if: ${{ !startsWith(github.ref, 'refs/tags/v') }}
id: release-upload-slash-in-tag
uses: SELF@vTest
with:
direction: upload
tag: v/3.0
token: FORGEJO_TEST_TOKEN
release-dir: upload-dir-v3
release-notes: "RELEASE NOTES"
verbose: true
- if: ${{ !startsWith(github.ref, 'refs/tags/v') }}
id: release-download-with-slash-in-tag
uses: SELF@vTest
with:
direction: download
tag: a/v3.0
tag: v/3.0
token: FORGEJO_TEST_TOKEN
release-dir: download-dir-v3a
download-latest: true
release-dir: download-dir-v3
verbose: true
- if: ${{ !startsWith(github.ref, 'refs/tags/v') }}
run: |
diff -u upload-dir download-dir-v3a
diff -u upload-dir-v3 download-dir-v3
- if: failure()
run: docker logs forgejo

View file

@ -0,0 +1 @@
FILE1-V3

View file

@ -0,0 +1 @@
FILE2-V3