mirror of
https://code.forgejo.org/actions/forgejo-release.git
synced 2025-07-06 07:43:44 +00:00
specify the SHA when the repo running the action is unrelated
This commit is contained in:
parent
21454480e1
commit
429c93d710
2 changed files with 12 additions and 4 deletions
|
@ -12,6 +12,8 @@ inputs:
|
|||
tag:
|
||||
description: 'Tag of the release'
|
||||
required: true
|
||||
sha:
|
||||
description: 'SHA of the release'
|
||||
doer:
|
||||
description: 'Forgejo user authoring the upload'
|
||||
token:
|
||||
|
@ -40,6 +42,9 @@ runs:
|
|||
export TOKEN="${{ inputs.token }}"
|
||||
export RELEASE_DIR="${{ inputs.release-dir }}"
|
||||
export VERBOSE="${{ inputs.verbose }}"
|
||||
export SHA="${{ github.sha }}"
|
||||
export SHA="${{ inputs.sha }}"
|
||||
if test -z "$SHA"; then
|
||||
export SHA="${{ github.sha }}"
|
||||
fi
|
||||
forgejo-release.sh ${{ inputs.direction }}
|
||||
shell: bash
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue