mirror of
https://code.forgejo.org/actions/forgejo-release.git
synced 2025-11-28 02:01:58 +02:00
better locals names, POSIX compliant action.yml
Signed-off-by: crueter <crueter@eden-emu.dev>
This commit is contained in:
parent
eeadd646e2
commit
8fd044737f
2 changed files with 17 additions and 22 deletions
18
action.yml
18
action.yml
|
|
@ -64,14 +64,14 @@ runs:
|
|||
path: ${{ forge.action_path }}/rna
|
||||
|
||||
- run: echo "${{ forge.action_path }}" >> $FORGEJO_PATH
|
||||
shell: bash
|
||||
shell: sh
|
||||
- run: |
|
||||
export FORGEJO="${{ inputs.url }}"
|
||||
# A trailing / will mean http://forgejo//api/v1 is used
|
||||
# and it always 401 as of v1.19, because of the double slash
|
||||
FORGEJO=${FORGEJO%%/}
|
||||
export SCHEME=${FORGEJO%://*}
|
||||
export HOST=${FORGEJO#*://}
|
||||
export SCHEME="${FORGEJO%://*}"
|
||||
export HOST="${FORGEJO#*://}"
|
||||
|
||||
export REPO="${{ inputs.repo }}"
|
||||
|
||||
|
|
@ -84,7 +84,7 @@ runs:
|
|||
export PRERELEASE="${{ inputs.prerelease }}"
|
||||
|
||||
export RELEASE_NOTES_ASSISTANT="${{ inputs.release-notes-assistant }}"
|
||||
export RELEASE_NOTES_ASSISTANT_WORKDIR=${{ forge.action_path }}/rna
|
||||
export RELEASE_NOTES_ASSISTANT_WORKDIR="${{ forge.action_path }}/rna"
|
||||
|
||||
export HIDE_ARCHIVE_LINK="${{ inputs.hide-archive-link }}"
|
||||
|
||||
|
|
@ -105,13 +105,13 @@ runs:
|
|||
|
||||
export RETRY="${{ inputs.download-retry }}"
|
||||
|
||||
export TMP_DIR=$(mktemp -d)
|
||||
trap "rm -fr $TMP_DIR" EXIT
|
||||
export TMP_DIR="$(mktemp -d)"
|
||||
trap 'rm -fr $TMP_DIR' EXIT
|
||||
|
||||
echo -n "${{ inputs.gpg-private-key }}" > $TMP_DIR/gpg-private-key
|
||||
printf "${{ inputs.gpg-private-key }}" > $TMP_DIR/gpg-private-key
|
||||
export GPG_PRIVATE_KEY=$TMP_DIR/gpg-private-key
|
||||
echo -n "${{ inputs.gpg-passphrase }}" > $TMP_DIR/gpg-passphrase
|
||||
printf "${{ inputs.gpg-passphrase }}" > $TMP_DIR/gpg-passphrase
|
||||
export GPG_PASSPHRASE="$TMP_DIR/gpg-passphrase"
|
||||
|
||||
forgejo-release.sh ${{ inputs.direction }}
|
||||
forgejo-release.sh "${{ inputs.direction }}"
|
||||
shell: bash
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue