mirror of
https://code.forgejo.org/actions/forgejo-release.git
synced 2024-11-29 05:14:46 +01:00
cosmetic changes
This commit is contained in:
parent
bb345b780c
commit
0037083d2d
1 changed files with 8 additions and 1 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue