Skip to content

Commit

Permalink
add input trigger to use pkgcraft from git
Browse files Browse the repository at this point in the history
Fixes #3.
  • Loading branch information
radhermit committed Nov 13, 2024
1 parent 6feddec commit a4a307e
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,10 @@ inputs:
description: Path to ebuild repo
required: false
default: './'
git:
description: Use pkgcraft from git
required: false
default: 'false'

runs:
using: composite
Expand All @@ -29,8 +33,14 @@ runs:
id: install
shell: bash
run: |
curl -sL https://github.com/pkgcraft/pkgcraft/releases/download/pkgcraft-tools-0.0.16/pkgcraft-tools-0.0.16-x86_64-unknown-linux-gnu.tar.xz | tar -Jxf - -C ~/.cargo/bin
curl -sL https://github.com/pkgcraft/pkgcraft/releases/download/pkgcruft-0.0.3/pkgcruft-0.0.3-x86_64-unknown-linux-gnu.tar.xz | tar -Jxf - -C ~/.cargo/bin
if [[ ${{ inputs.git }} == "true" ]]; then
cargo install pkgcraft-tools --git https://github.com/pkgcraft/pkgcraft.git
cargo install pkgcruft --git https://github.com/pkgcraft/pkgcraft.git
else
curl -sL https://github.com/pkgcraft/pkgcraft/releases/download/pkgcraft-tools-0.0.16/pkgcraft-tools-0.0.16-x86_64-unknown-linux-gnu.tar.xz | tar -Jxf - -C ~/.cargo/bin
curl -sL https://github.com/pkgcraft/pkgcraft/releases/download/pkgcruft-0.0.3/pkgcruft-0.0.3-x86_64-unknown-linux-gnu.tar.xz | tar -Jxf - -C ~/.cargo/bin
fi
pk --version
pkgcruft --version
echo "pkgcraft-tools=$(pk --version)" >> $GITHUB_OUTPUT
Expand Down

0 comments on commit a4a307e

Please sign in to comment.