Compare commits

...

18 commits
v2.6.1 ... main

Author SHA1 Message Date
Renovate Bot
9223b9c0d5
Update https://code.forgejo.org/actions/setup-forgejo action to v3.0.2 (#84)
This PR contains the following updates:

| Package | Type | Update | Change |
|---|---|---|---|
| [https://code.forgejo.org/actions/setup-forgejo](https://code.forgejo.org/actions/setup-forgejo) | action | patch | `v3.0.1` -> `v3.0.2` |

---

### Release Notes

<details>
<summary>actions/setup-forgejo (https://code.forgejo.org/actions/setup-forgejo)</summary>

### [`v3.0.2`](https://code.forgejo.org/actions/setup-forgejo/compare/v3.0.1...v3.0.2)

[Compare Source](https://code.forgejo.org/actions/setup-forgejo/compare/v3.0.1...v3.0.2)

</details>

---

### Configuration

📅 **Schedule**: Branch creation - Between 12:00 AM and 03:59 AM ( * 0-3 * * * ) (UTC), Automerge - Between 12:00 AM and 03:59 AM ( * 0-3 * * * ) (UTC).

🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied.

♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 **Ignore**: Close this PR and you won't be reminded about this update again.

---

 - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box

---

This PR has been generated by [Renovate Bot](https://github.com/renovatebot/renovate).
<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiI0MS42MS4wIiwidXBkYXRlZEluVmVyIjoiNDEuNjEuMCIsInRhcmdldEJyYW5jaCI6Im1haW4iLCJsYWJlbHMiOltdfQ==-->

Reviewed-on: https://code.forgejo.org/actions/forgejo-release/pulls/84
Co-authored-by: Renovate Bot <bot@kriese.eu>
Co-committed-by: Renovate Bot <bot@kriese.eu>
2025-08-15 09:27:50 +00:00
Renovate Bot
9f05f9811a
Update dependency actions/forgejo-release to v2.7.2 (#81)
This PR contains the following updates:

| Package | Update | Change |
|---|---|---|
| [actions/forgejo-release](https://code.forgejo.org/actions/forgejo-release) | patch | `v2.7.1` -> `v2.7.2` |

---

### Release Notes

<details>
<summary>actions/forgejo-release (actions/forgejo-release)</summary>

### [`v2.7.2`](https://code.forgejo.org/actions/forgejo-release/compare/v2.7.1...v2.7.2)

[Compare Source](https://code.forgejo.org/actions/forgejo-release/compare/v2.7.1...v2.7.2)

</details>

---

### Configuration

📅 **Schedule**: Branch creation - Between 12:00 AM and 03:59 AM ( * 0-3 * * * ) (UTC), Automerge - Between 12:00 AM and 03:59 AM ( * 0-3 * * * ) (UTC).

🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied.

♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 **Ignore**: Close this PR and you won't be reminded about this update again.

---

 - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box

---

This PR has been generated by [Renovate Bot](https://github.com/renovatebot/renovate).
<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiI0MS41MS4xIiwidXBkYXRlZEluVmVyIjoiNDEuNTEuMSIsInRhcmdldEJyYW5jaCI6Im1haW4iLCJsYWJlbHMiOltdfQ==-->

Reviewed-on: https://code.forgejo.org/actions/forgejo-release/pulls/81
Reviewed-by: earl-warren <earl-warren@noreply.code.forgejo.org>
Co-authored-by: Renovate Bot <bot@kriese.eu>
Co-committed-by: Renovate Bot <bot@kriese.eu>
2025-08-06 12:51:30 +00:00
Earl Warren
25f6ec3fc2
fix: do not preserve spaces in the token (#80)
If a token has trailing whitespace by accident, they must not be preserved. Do not quote the value so that they are trimmed by shell evaluation.

Reviewed-on: https://code.forgejo.org/actions/forgejo-release/pulls/80
Co-authored-by: Earl Warren <contact@earl-warren.org>
Co-committed-by: Earl Warren <contact@earl-warren.org>
2025-08-05 14:01:06 +00:00
Earl Warren
c263d31a62
fix: restore tests on a private repository (#77)
https://code.forgejo.org/forgejo/release-notes-assistant/releases/tag/v1.4.0
Reviewed-on: https://code.forgejo.org/actions/forgejo-release/pulls/77
Co-authored-by: Earl Warren <contact@earl-warren.org>
Co-committed-by: Earl Warren <contact@earl-warren.org>
2025-08-05 13:02:13 +00:00
Renovate Bot
7b6b1cd6b6
Update dependency forgejo/release-notes-assistant to v1.4.0 (#78)
This PR contains the following updates:

| Package | Update | Change |
|---|---|---|
| [forgejo/release-notes-assistant](https://code.forgejo.org/forgejo/release-notes-assistant) | minor | `v1.3.6` -> `v1.4.0` |

---

### Release Notes

<details>
<summary>forgejo/release-notes-assistant (forgejo/release-notes-assistant)</summary>

### [`v1.4.0`](https://code.forgejo.org/forgejo/release-notes-assistant/releases/tag/v1.4.0)

[Compare Source](https://code.forgejo.org/forgejo/release-notes-assistant/compare/v1.3.6...v1.4.0)

<!--start release-notes-assistant-->

<!--URL:https://code.forgejo.org/forgejo/release-notes-assistant-->

- features
  - [PR](https://code.forgejo.org/forgejo/release-notes-assistant/pulls/104): <!--number 104 --><!--line 0 --><!--description ZmVhdDogc3VwcG9ydCBmZXRjaGluZyBmcm9tIHByaXZhdGUgcmVwb3NpdG9yaWVz-->feat: support fetching from private repositories<!--description-->
- bug fixes
  - [PR](https://code.forgejo.org/forgejo/release-notes-assistant/pulls/102): <!--number 102 --><!--line 0 --><!--description Zml4KHNlY3VyaXR5KTogcmVtb3ZlIHVzZXIgLyBwYXNzd29yZCBmcm9tIHRoZSBVUkw=-->fix(security): remove user / password from the URL<!--description-->
- other
  - [PR](https://code.forgejo.org/forgejo/release-notes-assistant/pulls/93): <!--number 93 --><!--line 0 --><!--description VXBkYXRlIG1vZHVsZSBnaXRodWIuY29tL2dvbGFuZ2NpL2dvbGFuZ2NpLWxpbnQvdjIvY21kL2dvbGFuZ2NpLWxpbnQgdG8gdjIuMy4w-->Update module github.com/golangci/golangci-lint/v2/cmd/golangci-lint to v2.3.0<!--description-->
  - [PR](https://code.forgejo.org/forgejo/release-notes-assistant/pulls/103): <!--number 103 --><!--line 0 --><!--description Y2hvcmUoY2kpOiBkbyBub3QgcnVuIHRlc3RzIG9uIHJlbm92YXRlIGJyYW5jaGVz-->chore(ci): do not run tests on renovate branches<!--description-->
  - [PR](https://code.forgejo.org/forgejo/release-notes-assistant/pulls/101): <!--number 101 --><!--line 0 --><!--description VXBkYXRlIGh0dHBzOi8vZGF0YS5mb3JnZWpvLm9yZy9hY3Rpb25zL2Zvcmdlam8tcmVsZWFzZSBhY3Rpb24gdG8gdjIuNy4x-->Update https://data.forgejo.org/actions/forgejo-release action to v2.7.1<!--description-->

<!--end release-notes-assistant-->

</details>

---

### Configuration

📅 **Schedule**: Branch creation - Between 12:00 AM and 03:59 AM ( * 0-3 * * * ) (UTC), Automerge - Between 12:00 AM and 03:59 AM ( * 0-3 * * * ) (UTC).

🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied.

♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 **Ignore**: Close this PR and you won't be reminded about this update again.

---

 - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box

---

This PR has been generated by [Renovate Bot](https://github.com/renovatebot/renovate).
<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiI0MS40My41IiwidXBkYXRlZEluVmVyIjoiNDEuNDMuNSIsInRhcmdldEJyYW5jaCI6Im1haW4iLCJsYWJlbHMiOltdfQ==-->

Reviewed-on: https://code.forgejo.org/actions/forgejo-release/pulls/78
Reviewed-by: earl-warren <earl-warren@noreply.code.forgejo.org>
Co-authored-by: Renovate Bot <bot@kriese.eu>
Co-committed-by: Renovate Bot <bot@kriese.eu>
2025-08-02 13:14:48 +00:00
Renovate Bot
5d24b53805
Update dependency actions/forgejo-release to v2.7.1 (#76)
This PR contains the following updates:

| Package | Update | Change |
|---|---|---|
| [actions/forgejo-release](https://code.forgejo.org/actions/forgejo-release) | patch | `v2.7.0` -> `v2.7.1` |

---

### Release Notes

<details>
<summary>actions/forgejo-release (actions/forgejo-release)</summary>

### [`v2.7.1`](https://code.forgejo.org/actions/forgejo-release/compare/v2.7.0...v2.7.1)

[Compare Source](https://code.forgejo.org/actions/forgejo-release/compare/v2.7.0...v2.7.1)

</details>

---

### Configuration

📅 **Schedule**: Branch creation - Between 12:00 AM and 03:59 AM ( * 0-3 * * * ) (UTC), Automerge - Between 12:00 AM and 03:59 AM ( * 0-3 * * * ) (UTC).

🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied.

♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 **Ignore**: Close this PR and you won't be reminded about this update again.

---

 - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box

---

This PR has been generated by [Renovate Bot](https://github.com/renovatebot/renovate).
<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiI0MS40My41IiwidXBkYXRlZEluVmVyIjoiNDEuNDMuNSIsInRhcmdldEJyYW5jaCI6Im1haW4iLCJsYWJlbHMiOltdfQ==-->

Reviewed-on: https://code.forgejo.org/actions/forgejo-release/pulls/76
Co-authored-by: Renovate Bot <bot@kriese.eu>
Co-committed-by: Renovate Bot <bot@kriese.eu>
2025-08-02 00:28:26 +00:00
Earl Warren
ac7e1b6ea3
fix(security): use the --token argument of rna instead of basic auth (#75)
Reviewed-on: https://code.forgejo.org/actions/forgejo-release/pulls/75
Co-authored-by: Earl Warren <contact@earl-warren.org>
Co-committed-by: Earl Warren <contact@earl-warren.org>
2025-08-01 23:32:59 +00:00
Renovate Bot
777842e57f
Update dependency forgejo/release-notes-assistant to v1.3.6 (#74)
This PR contains the following updates:

| Package | Update | Change |
|---|---|---|
| [forgejo/release-notes-assistant](https://code.forgejo.org/forgejo/release-notes-assistant) | patch | `v1.3.5` -> `v1.3.6` |

---

### Release Notes

<details>
<summary>forgejo/release-notes-assistant (forgejo/release-notes-assistant)</summary>

### [`v1.3.6`](https://code.forgejo.org/forgejo/release-notes-assistant/releases/tag/v1.3.6)

[Compare Source](https://code.forgejo.org/forgejo/release-notes-assistant/compare/v1.3.5...v1.3.6)

<!--start release-notes-assistant-->

<!--URL:https://placeholder:ca61bc9776c376e293039231cd01158c2c2f0a4f@code.forgejo.org/forgejo/release-notes-assistant-->

- bug fixes
  - [PR](https://placeholder:ca61bc9776c376e293039231cd01158c2c2f0a4f@code.forgejo.org/forgejo/release-notes-assistant/pulls/100): <!--number 100 --><!--line 0 --><!--description Zml4OiBjb252ZXJ0IEVPTCBcclxuIHRvIFxuIHdoZW4gZ2V0dGluZyBhIHNpbmdsZSBwdWxsIHJlcXVlc3Q=-->fix: convert EOL \r\n to \n when getting a single pull request<!--description-->
- other
  - [PR](https://placeholder:ca61bc9776c376e293039231cd01158c2c2f0a4f@code.forgejo.org/forgejo/release-notes-assistant/pulls/96): <!--number 96 --><!--line 0 --><!--description VXBkYXRlIGh0dHBzOi8vZGF0YS5mb3JnZWpvLm9yZy9hY3Rpb25zL2Zvcmdlam8tcmVsZWFzZSBhY3Rpb24gdG8gdjIuNy4w-->Update https://data.forgejo.org/actions/forgejo-release action to v2.7.0<!--description-->

<!--end release-notes-assistant-->

</details>

---

### Configuration

📅 **Schedule**: Branch creation - Between 12:00 AM and 03:59 AM ( * 0-3 * * * ) (UTC), Automerge - Between 12:00 AM and 03:59 AM ( * 0-3 * * * ) (UTC).

🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied.

♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 **Ignore**: Close this PR and you won't be reminded about this update again.

---

 - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box

---

This PR has been generated by [Renovate Bot](https://github.com/renovatebot/renovate).
<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiI0MS40My41IiwidXBkYXRlZEluVmVyIjoiNDEuNDMuNSIsInRhcmdldEJyYW5jaCI6Im1haW4iLCJsYWJlbHMiOltdfQ==-->

Reviewed-on: https://code.forgejo.org/actions/forgejo-release/pulls/74
Reviewed-by: earl-warren <earl-warren@noreply.code.forgejo.org>
Co-authored-by: Renovate Bot <bot@kriese.eu>
Co-committed-by: Renovate Bot <bot@kriese.eu>
2025-07-30 04:11:37 +00:00
Renovate Bot
1c7fea91f7
Update dependency actions/forgejo-release to v2.7.0 (#73)
This PR contains the following updates:

| Package | Update | Change |
|---|---|---|
| [actions/forgejo-release](https://code.forgejo.org/actions/forgejo-release) | minor | `v2.6.1` -> `v2.7.0` |

---

### Release Notes

<details>
<summary>actions/forgejo-release (actions/forgejo-release)</summary>

### [`v2.7.0`](https://code.forgejo.org/actions/forgejo-release/compare/v2.6.2...v2.7.0)

[Compare Source](https://code.forgejo.org/actions/forgejo-release/compare/v2.6.2...v2.7.0)

### [`v2.6.2`](https://code.forgejo.org/actions/forgejo-release/compare/v2.6.1...v2.6.2)

[Compare Source](https://code.forgejo.org/actions/forgejo-release/compare/v2.6.1...v2.6.2)

</details>

---

### Configuration

📅 **Schedule**: Branch creation - Between 12:00 AM and 03:59 AM ( * 0-3 * * * ) (UTC), Automerge - Between 12:00 AM and 03:59 AM ( * 0-3 * * * ) (UTC).

🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied.

♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 **Ignore**: Close this PR and you won't be reminded about this update again.

---

 - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box

---

This PR has been generated by [Renovate Bot](https://github.com/renovatebot/renovate).
<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiI0MS40Mi4xMCIsInVwZGF0ZWRJblZlciI6IjQxLjQyLjEwIiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6W119-->

Reviewed-on: https://code.forgejo.org/actions/forgejo-release/pulls/73
Reviewed-by: earl-warren <earl-warren@noreply.code.forgejo.org>
Co-authored-by: Renovate Bot <bot@kriese.eu>
Co-committed-by: Renovate Bot <bot@kriese.eu>
2025-07-28 06:12:35 +00:00
Earl Warren
c15813dcfb
fix: reuse tea if already installed (#72)
Reviewed-on: https://code.forgejo.org/actions/forgejo-release/pulls/72
Co-authored-by: Earl Warren <contact@earl-warren.org>
Co-committed-by: Earl Warren <contact@earl-warren.org>
2025-07-27 14:03:26 +00:00
Earl Warren
26fe28ef1e
feat: cache the workdir of the release-notes-assistant (#69)
there is no need for additional testing: the existing tests covering the use of the release-notes-assistant will unconditionally use the cache and be proof it does not break things

Reviewed-on: https://code.forgejo.org/actions/forgejo-release/pulls/69
Co-authored-by: Earl Warren <contact@earl-warren.org>
Co-committed-by: Earl Warren <contact@earl-warren.org>
2025-07-27 14:03:10 +00:00
earl-warren
76ca8d5b17
fix: action parameters are not granted access to secrets (#71)
Reviewed-on: https://code.forgejo.org/actions/forgejo-release/pulls/71
Reviewed-by: Michael Kriese <michael.kriese@gmx.de>
2025-07-27 13:29:04 +00:00
Earl Warren
d21db0da1a
chore(ci): always show the runner and server logs 2025-07-27 15:12:59 +02:00
Earl Warren
63485695ff
fix: upgrade release notes assitant to agree with git 2025-07-27 15:07:06 +02:00
Earl Warren
466ca34619
fix: action parameters are not granted access to secrets 2025-07-27 14:04:22 +02:00
Earl Warren
b669ffeda7
chore: teach renovate about release-notes-assistant (#67)
Reviewed-on: https://code.forgejo.org/actions/forgejo-release/pulls/67
Reviewed-by: Michael Kriese <michael.kriese@gmx.de>
Co-authored-by: Earl Warren <contact@earl-warren.org>
Co-committed-by: Earl Warren <contact@earl-warren.org>
2025-07-27 08:08:16 +00:00
Renovate Bot
322d5ebe18
Update dependency actions/forgejo-release to v2.6.1 (#65)
This PR contains the following updates:

| Package | Update | Change |
|---|---|---|
| [actions/forgejo-release](https://code.forgejo.org/actions/forgejo-release) | patch | `v2.6.0` -> `v2.6.1` |

---

### Release Notes

<details>
<summary>actions/forgejo-release (actions/forgejo-release)</summary>

### [`v2.6.1`](https://code.forgejo.org/actions/forgejo-release/compare/v2.6.0...v2.6.1)

[Compare Source](https://code.forgejo.org/actions/forgejo-release/compare/v2.6.0...v2.6.1)

</details>

---

### Configuration

📅 **Schedule**: Branch creation - Between 12:00 AM and 03:59 AM ( * 0-3 * * * ) (UTC), Automerge - Between 12:00 AM and 03:59 AM ( * 0-3 * * * ) (UTC).

🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied.

♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 **Ignore**: Close this PR and you won't be reminded about this update again.

---

 - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box

---

This PR has been generated by [Renovate Bot](https://github.com/renovatebot/renovate).
<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiI0MS40Mi4xMCIsInVwZGF0ZWRJblZlciI6IjQxLjQyLjEwIiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6W119-->

Reviewed-on: https://code.forgejo.org/actions/forgejo-release/pulls/65
Reviewed-by: earl-warren <earl-warren@noreply.code.forgejo.org>
Co-authored-by: Renovate Bot <bot@kriese.eu>
Co-committed-by: Renovate Bot <bot@kriese.eu>
2025-07-26 05:41:48 +00:00
Earl Warren
d051ae27b2
fix(ci): s/FORGEJO_TOKEN/FORGEJO_TEST_TOKEN/ (#64)
Reviewed-on: https://code.forgejo.org/actions/forgejo-release/pulls/64
Co-authored-by: Earl Warren <contact@earl-warren.org>
Co-committed-by: Earl Warren <contact@earl-warren.org>
2025-07-26 05:22:53 +00:00
9 changed files with 51 additions and 45 deletions

View file

@ -6,7 +6,7 @@ jobs:
- uses: actions/checkout@v4
- id: forgejo
uses: https://code.forgejo.org/actions/setup-forgejo@v3.0.1
uses: https://code.forgejo.org/actions/setup-forgejo@v3.0.2
with:
user: testuser
password: admin1234
@ -61,5 +61,11 @@ jobs:
export VERBOSE=true
testdata/forgejo-release-test.sh test_run testuser otherrepo
- if: failure()
run: docker logs forgejo
- if: always()
name: '[RUNNER] and [FORGEJO] logs'
run: |
runner_logs="${{ steps.forgejo.outputs.runner-logs }}"
if test -f "$runner_logs"; then
sed -e 's/^/[RUNNER] /' < $runner_logs
fi
docker logs forgejo | sed -e 's/^/[FORGEJO] /'

View file

@ -42,7 +42,7 @@ jobs:
runs-on: docker
steps:
- uses: actions/checkout@v4
- uses: actions/forgejo-release@v2.6.0
- uses: actions/forgejo-release@v2.7.2
with:
direction: upload
url: https://my-forgejo-instance.net
@ -63,7 +63,7 @@ jobs:
runs-on: docker
steps:
- uses: actions/checkout@v4
- uses: actions/forgejo-release@v2.6.0
- uses: actions/forgejo-release@v2.7.2
with:
direction: download
url: https://my-forgejo-instance.net

View file

@ -6,21 +6,21 @@ description: |
inputs:
url:
description: 'URL of the Forgejo instance'
default: '${{ env.GITHUB_SERVER_URL }}'
default: '${{ env.FORGEJO_SERVER_URL }}'
repo:
description: 'owner/project relative to the URL'
default: '${{ github.repository }}'
default: '${{ forge.repository }}'
tag:
description: 'Tag of the release'
default: '${{ github.ref_name }}'
default: '${{ forge.ref_name }}'
title:
description: 'Title of the release (defaults to tag)'
sha:
description: 'SHA of the release'
default: '${{ github.sha }}'
default: '${{ forge.sha }}'
token:
description: 'Forgejo application token'
default: '${{ secrets.GITHUB_TOKEN }}'
default: '${{ forge.token }}'
release-dir:
description: 'Directory in whichs release assets are uploaded or downloaded'
required: true
@ -57,7 +57,13 @@ inputs:
runs:
using: "composite"
steps:
- run: echo "${{ github.action_path }}" >> $GITHUB_PATH
- if: ${{ inputs.release-notes-assistant }}
uses: https://data.forgejo.org/actions/cache@v4
with:
key: rna-${{ inputs.repo }}
path: ${{ forge.action_path }}/rna
- run: echo "${{ forge.action_path }}" >> $FORGEJO_PATH
shell: bash
- run: |
export FORGEJO="${{ inputs.url }}"
@ -78,10 +84,11 @@ runs:
export PRERELEASE="${{ inputs.prerelease }}"
export RELEASE_NOTES_ASSISTANT="${{ inputs.release-notes-assistant }}"
export RELEASE_NOTES_ASSISTANT_WORKDIR=${{ forge.action_path }}/rna
export HIDE_ARCHIVE_LINK="${{ inputs.hide-archive-link }}"
export TOKEN="${{ inputs.token }}"
export TOKEN=${{ inputs.token }}
export RELEASE_DIR="${{ inputs.release-dir }}"

View file

@ -19,6 +19,8 @@ if ${VERBOSE:-false}; then set -x; fi
: ${RETRY:=1}
: ${DELAY:=10}
RELEASE_NOTES_ASSISTANT_VERSION=v1.4.0 # 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')
@ -27,7 +29,7 @@ export GNUPGHOME
setup_tea() {
if which tea 2>/dev/null; then
TEA_BIN=$(which tea)
else ! test -f $TEA_BIN;
elif ! test -f $TEA_BIN; then
ARCH=$(dpkg --print-architecture)
curl -sL https://dl.gitea.io/tea/$TEA_VERSION/tea-$TEA_VERSION-linux-"$ARCH" >$TEA_BIN
chmod +x $TEA_BIN
@ -116,9 +118,10 @@ 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"
mkdir -p $RELEASE_NOTES_ASSISTANT_WORKDIR
./rna --workdir=$RELEASE_NOTES_ASSISTANT_WORKDIR --storage release --storage-location "$TAG" --token "$TOKEN" --forgejo-url "$SCHEME://$HOST" --repository $REPO --token "$TOKEN" release "$TAG"
fi
}

View file

@ -12,7 +12,7 @@ jobs:
steps:
- uses: actions/checkout@v4
- id: forgejo
uses: https://code.forgejo.org/actions/setup-forgejo@v3.0.1
uses: https://code.forgejo.org/actions/setup-forgejo@v3.0.2
with:
user: testuser
password: admin1234

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