cosmetic changes

This commit is contained in:
Earl Warren 2023-05-23 13:04:39 +02:00
parent bb345b780c
commit 0037083d2d
No known key found for this signature in database
GPG key ID: 0579CB2928A78A00

View file

@ -40,10 +40,12 @@ runs:
# A trailing / will mean http://forgejo//api/v1 is used # A trailing / will mean http://forgejo//api/v1 is used
# and it always 401 as of v1.19, because of the double slash # and it always 401 as of v1.19, because of the double slash
FORGEJO=${FORGEJO%%/} FORGEJO=${FORGEJO%%/}
export REPO="${{ inputs.repo }}" export REPO="${{ inputs.repo }}"
if test -z "$REPO"; then if test -z "$REPO"; then
export REPO="${{ github.repository }}" export REPO="${{ github.repository }}"
fi fi
export TAG="${{ inputs.tag }}" export TAG="${{ inputs.tag }}"
if test -z "$TAG"; then if test -z "$TAG"; then
export TAG="${{ github.ref_name }}" export TAG="${{ github.ref_name }}"
@ -51,14 +53,19 @@ runs:
# trim refs/tags/ # trim refs/tags/
TAG=${TAG##refs/tags/} TAG=${TAG##refs/tags/}
fi fi
export TOKEN="${{ inputs.token }}" export TOKEN="${{ inputs.token }}"
export RELEASE_DIR="${{ inputs.release-dir }}" export RELEASE_DIR="${{ inputs.release-dir }}"
export RELEASENOTES="${{ inputs.release-notes }}" export RELEASENOTES="${{ inputs.release-notes }}"
export VERBOSE="${{ inputs.verbose }}"
export SHA="${{ inputs.sha }}" export SHA="${{ inputs.sha }}"
if test -z "$SHA"; then if test -z "$SHA"; then
export SHA="${{ github.sha }}" export SHA="${{ github.sha }}"
fi fi
export VERBOSE="${{ inputs.verbose }}"
forgejo-release.sh ${{ inputs.direction }} forgejo-release.sh ${{ inputs.direction }}
shell: bash shell: bash