mirror of
https://code.forgejo.org/actions/forgejo-release.git
synced 2025-04-24 18:02:15 +00:00
use dpkg --print-architecture
This commit is contained in:
parent
cc259da0cb
commit
1f75309ffd
3 changed files with 1 additions and 6 deletions
|
@ -24,7 +24,6 @@ Upload or download the assets of a release to a Forgejo instance.
|
||||||
| verbose | Increase the verbosity level | `false` | false |
|
| verbose | Increase the verbosity level | `false` | false |
|
||||||
| override | Override an existing release by the same {tag} | `false` | false |
|
| override | Override an existing release by the same {tag} | `false` | false |
|
||||||
| prerelease | Mark Release as Pre-Release | `false` | false |
|
| prerelease | Mark Release as Pre-Release | `false` | false |
|
||||||
| architecture | Set the architecture of the runner on which the action executes | `false` | amd64
|
|
||||||
<!-- action-docs-inputs -->
|
<!-- action-docs-inputs -->
|
||||||
|
|
||||||
## Example
|
## Example
|
||||||
|
|
|
@ -38,9 +38,6 @@ inputs:
|
||||||
prerelease:
|
prerelease:
|
||||||
description: 'Mark Release as Pre-Release'
|
description: 'Mark Release as Pre-Release'
|
||||||
default: 'false'
|
default: 'false'
|
||||||
architecture:
|
|
||||||
description: 'Set the architecture of the runner on which the action executes'
|
|
||||||
default: amd64
|
|
||||||
|
|
||||||
runs:
|
runs:
|
||||||
using: "composite"
|
using: "composite"
|
||||||
|
@ -96,7 +93,5 @@ runs:
|
||||||
echo -n "${{ inputs.gpg-passphrase }}" > $TMP_DIR/gpg-passphrase
|
echo -n "${{ inputs.gpg-passphrase }}" > $TMP_DIR/gpg-passphrase
|
||||||
export GPG_PASSPHRASE="$TMP_DIR/gpg-passphrase"
|
export GPG_PASSPHRASE="$TMP_DIR/gpg-passphrase"
|
||||||
|
|
||||||
export ARCH="${{ inputs.architecture }}"
|
|
||||||
|
|
||||||
forgejo-release.sh ${{ inputs.direction }}
|
forgejo-release.sh ${{ inputs.direction }}
|
||||||
shell: bash
|
shell: bash
|
||||||
|
|
|
@ -20,6 +20,7 @@ export GNUPGHOME
|
||||||
|
|
||||||
setup_tea() {
|
setup_tea() {
|
||||||
if ! test -f $BIN_DIR/tea ; then
|
if ! test -f $BIN_DIR/tea ; then
|
||||||
|
ARCH=$(dpkg --print-architecture)
|
||||||
curl -sL https://dl.gitea.io/tea/$TEA_VERSION/tea-$TEA_VERSION-linux-$ARCH > $BIN_DIR/tea
|
curl -sL https://dl.gitea.io/tea/$TEA_VERSION/tea-$TEA_VERSION-linux-$ARCH > $BIN_DIR/tea
|
||||||
chmod +x $BIN_DIR/tea
|
chmod +x $BIN_DIR/tea
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Add table
Reference in a new issue