mirror of
https://code.forgejo.org/actions/forgejo-release.git
synced 2025-07-04 06:53:44 +00:00
non nested upload/download tests
This commit is contained in:
parent
df1717d07c
commit
3a07a6062f
5 changed files with 45 additions and 2 deletions
16
action.yml
16
action.yml
|
@ -5,10 +5,8 @@ description: |
|
|||
inputs:
|
||||
url:
|
||||
description: 'URL of the Forgejo instance'
|
||||
required: true
|
||||
repo:
|
||||
description: 'owner/project relative to the URL'
|
||||
required: true
|
||||
tag:
|
||||
description: 'Tag of the release'
|
||||
required: true
|
||||
|
@ -38,13 +36,27 @@ runs:
|
|||
shell: bash
|
||||
- run: |
|
||||
export FORGEJO="${{ inputs.url }}"
|
||||
if test -z "$FORGEJO"; then
|
||||
export FORGEJO="${{ github.server_url }}"
|
||||
fi
|
||||
export REPO="${{ inputs.repo }}"
|
||||
if test -z "$REPO"; then
|
||||
export REPO="${{ github.repository }}"
|
||||
fi
|
||||
export TAG="${{ inputs.tag }}"
|
||||
export DOER="${{ inputs.doer }}"
|
||||
export TOKEN="${{ inputs.token }}"
|
||||
if test -z "$TOKEN"; then
|
||||
export TOKEN="${{ github.token }}"
|
||||
fi
|
||||
if test -z "$TOKEN"; then
|
||||
export TOKEN="${{ secrets.GITHUB_TOKEN }}"
|
||||
fi
|
||||
test "$TOKEN"
|
||||
export RELEASE_DIR="${{ inputs.release-dir }}"
|
||||
export RELEASENOTES="${{ inputs.release-notes }}"
|
||||
export VERBOSE="${{ inputs.verbose }}"
|
||||
|
||||
export SHA="${{ inputs.sha }}"
|
||||
if test -z "$SHA"; then
|
||||
export SHA="${{ github.sha }}"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue