mirror of
https://code.forgejo.org/actions/forgejo-release.git
synced 2026-02-04 14:58:08 +00:00
Compare commits
6 commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
b5fa0f2e61 | ||
|
|
21f672cae6 | ||
|
|
454bc2681f | ||
|
|
4b5fdf8538 | ||
|
|
5c6400d871 | ||
|
|
a1314c9c65 |
4 changed files with 8 additions and 7 deletions
|
|
@ -5,7 +5,7 @@ on:
|
|||
- "**"
|
||||
|
||||
env:
|
||||
FORGEJO_VERSION: 11.0.10 # renovate: datasource=docker depName=code.forgejo.org/forgejo/forgejo
|
||||
FORGEJO_VERSION: 11.0.10 # renovate: datasource=docker depName=data.forgejo.org/forgejo/forgejo
|
||||
|
||||
jobs:
|
||||
integration:
|
||||
|
|
@ -14,7 +14,7 @@ jobs:
|
|||
- uses: actions/checkout@v6
|
||||
|
||||
- id: forgejo
|
||||
uses: https://code.forgejo.org/actions/setup-forgejo@v3.1.1
|
||||
uses: https://code.forgejo.org/actions/setup-forgejo@v3.1.3
|
||||
with:
|
||||
user: testuser
|
||||
password: admin1234
|
||||
|
|
|
|||
|
|
@ -43,7 +43,7 @@ jobs:
|
|||
runs-on: docker
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- uses: actions/forgejo-release@v2.8.0
|
||||
- uses: actions/forgejo-release@v2.9.1
|
||||
with:
|
||||
direction: upload
|
||||
url: https://my-forgejo-instance.net
|
||||
|
|
@ -64,7 +64,7 @@ jobs:
|
|||
runs-on: docker
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- uses: actions/forgejo-release@v2.8.0
|
||||
- uses: actions/forgejo-release@v2.9.1
|
||||
with:
|
||||
direction: download
|
||||
url: https://my-forgejo-instance.net
|
||||
|
|
|
|||
|
|
@ -18,6 +18,7 @@ if ${VERBOSE:-false}; then set -x; fi
|
|||
: ${HIDE_ARCHIVE_LINK:=false}
|
||||
: ${RETRY:=1}
|
||||
: ${DELAY:=10}
|
||||
: ${SKIP_ASSETS:=false}
|
||||
|
||||
RELEASE_NOTES_ASSISTANT_VERSION=v1.5.1 # renovate: datasource=forgejo-releases depName=forgejo/release-notes-assistant registryUrl=https://code.forgejo.org
|
||||
|
||||
|
|
@ -84,7 +85,7 @@ upload_release() {
|
|||
# It is expanded using "${assets[@]}" which preserves the separation of arguments and not split whitespace containing values.
|
||||
# For reference, see https://github.com/koalaman/shellcheck/wiki/SC2086#exceptions
|
||||
local assets=()
|
||||
if ! "$SKIP_ASSETS"; then
|
||||
if [ "$SKIP_ASSETS" == 'false' ]; then
|
||||
for file in "$RELEASE_DIR"/*; do
|
||||
assets=("${assets[@]}" -a "$file")
|
||||
done
|
||||
|
|
@ -209,7 +210,7 @@ download() {
|
|||
(
|
||||
mkdir -p $RELEASE_DIR
|
||||
cd $RELEASE_DIR
|
||||
if [[ ${DOWNLOAD_LATEST} == "true" ]]; then
|
||||
if [[ ${DOWNLOAD_LATEST} = "true" ]]; then
|
||||
echo "Downloading the latest release"
|
||||
api GET repos/$REPO/releases/latest >"$TMP_DIR"/assets.json
|
||||
elif [[ ${DOWNLOAD_LATEST} == "false" ]]; then
|
||||
|
|
|
|||
|
|
@ -16,7 +16,7 @@ jobs:
|
|||
steps:
|
||||
- uses: actions/checkout@v6
|
||||
- id: forgejo
|
||||
uses: https://code.forgejo.org/actions/setup-forgejo@v3.1.1
|
||||
uses: https://code.forgejo.org/actions/setup-forgejo@v3.1.3
|
||||
with:
|
||||
user: testuser
|
||||
password: admin1234
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue