mirror of
https://code.forgejo.org/actions/forgejo-release.git
synced 2026-02-04 06:48:09 +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:
|
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:
|
jobs:
|
||||||
integration:
|
integration:
|
||||||
|
|
@ -14,7 +14,7 @@ jobs:
|
||||||
- uses: actions/checkout@v6
|
- uses: actions/checkout@v6
|
||||||
|
|
||||||
- id: forgejo
|
- 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:
|
with:
|
||||||
user: testuser
|
user: testuser
|
||||||
password: admin1234
|
password: admin1234
|
||||||
|
|
|
||||||
|
|
@ -43,7 +43,7 @@ jobs:
|
||||||
runs-on: docker
|
runs-on: docker
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
- uses: actions/forgejo-release@v2.8.0
|
- uses: actions/forgejo-release@v2.9.1
|
||||||
with:
|
with:
|
||||||
direction: upload
|
direction: upload
|
||||||
url: https://my-forgejo-instance.net
|
url: https://my-forgejo-instance.net
|
||||||
|
|
@ -64,7 +64,7 @@ jobs:
|
||||||
runs-on: docker
|
runs-on: docker
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
- uses: actions/forgejo-release@v2.8.0
|
- uses: actions/forgejo-release@v2.9.1
|
||||||
with:
|
with:
|
||||||
direction: download
|
direction: download
|
||||||
url: https://my-forgejo-instance.net
|
url: https://my-forgejo-instance.net
|
||||||
|
|
|
||||||
|
|
@ -18,6 +18,7 @@ if ${VERBOSE:-false}; then set -x; fi
|
||||||
: ${HIDE_ARCHIVE_LINK:=false}
|
: ${HIDE_ARCHIVE_LINK:=false}
|
||||||
: ${RETRY:=1}
|
: ${RETRY:=1}
|
||||||
: ${DELAY:=10}
|
: ${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
|
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.
|
# 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
|
# For reference, see https://github.com/koalaman/shellcheck/wiki/SC2086#exceptions
|
||||||
local assets=()
|
local assets=()
|
||||||
if ! "$SKIP_ASSETS"; then
|
if [ "$SKIP_ASSETS" == 'false' ]; then
|
||||||
for file in "$RELEASE_DIR"/*; do
|
for file in "$RELEASE_DIR"/*; do
|
||||||
assets=("${assets[@]}" -a "$file")
|
assets=("${assets[@]}" -a "$file")
|
||||||
done
|
done
|
||||||
|
|
@ -209,7 +210,7 @@ download() {
|
||||||
(
|
(
|
||||||
mkdir -p $RELEASE_DIR
|
mkdir -p $RELEASE_DIR
|
||||||
cd $RELEASE_DIR
|
cd $RELEASE_DIR
|
||||||
if [[ ${DOWNLOAD_LATEST} == "true" ]]; then
|
if [[ ${DOWNLOAD_LATEST} = "true" ]]; then
|
||||||
echo "Downloading the latest release"
|
echo "Downloading the latest release"
|
||||||
api GET repos/$REPO/releases/latest >"$TMP_DIR"/assets.json
|
api GET repos/$REPO/releases/latest >"$TMP_DIR"/assets.json
|
||||||
elif [[ ${DOWNLOAD_LATEST} == "false" ]]; then
|
elif [[ ${DOWNLOAD_LATEST} == "false" ]]; then
|
||||||
|
|
|
||||||
|
|
@ -16,7 +16,7 @@ jobs:
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v6
|
- uses: actions/checkout@v6
|
||||||
- id: forgejo
|
- 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:
|
with:
|
||||||
user: testuser
|
user: testuser
|
||||||
password: admin1234
|
password: admin1234
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue