diff --git a/README.md b/README.md index 02ee482..2a18930 100644 --- a/README.md +++ b/README.md @@ -24,7 +24,6 @@ Upload or download the assets of a release to a Forgejo instance. | verbose | Increase the verbosity level | `false` | false | | override | Override an existing release by the same {tag} | `false` | false | | prerelease | Mark Release as Pre-Release | `false` | false | -| architecture | Set the architecture of the runner on which the action executes | `false` | amd64 ## Example diff --git a/action.yml b/action.yml index cb2f7ee..1f2cf83 100644 --- a/action.yml +++ b/action.yml @@ -38,9 +38,6 @@ inputs: prerelease: description: 'Mark Release as Pre-Release' default: 'false' - architecture: - description: 'Set the architecture of the runner on which the action executes' - default: amd64 runs: using: "composite" @@ -96,7 +93,5 @@ runs: echo -n "${{ inputs.gpg-passphrase }}" > $TMP_DIR/gpg-passphrase export GPG_PASSPHRASE="$TMP_DIR/gpg-passphrase" - export ARCH="${{ inputs.architecture }}" - forgejo-release.sh ${{ inputs.direction }} shell: bash diff --git a/forgejo-release.sh b/forgejo-release.sh index c0b25f3..b9aaf03 100755 --- a/forgejo-release.sh +++ b/forgejo-release.sh @@ -20,6 +20,7 @@ export GNUPGHOME setup_tea() { 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 chmod +x $BIN_DIR/tea fi