Skip to content

Commit

Permalink
Move helper functions to lib.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
Eeems committed Dec 23, 2023
1 parent e5a7fb1 commit 61e881b
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,11 +56,7 @@ runs:
id: args
shell: bash
run: |
prepend() { xargs -rn1 echo "$1" }
toArray() { jq --raw-input | jq --compact-output --slurp '.' }
toFlagsArray() { echo "$2" | prepend "--${1}" | toArray }
setOutputVar() { echo "${1}='$2'" | tee -a "$GITHUB_OUTPUT" }
source lib.sh
setOutputVar \
arch \
"$(toFlagsArray arch-name "$arch")"
Expand Down
Empty file added lib.sh
Empty file.

0 comments on commit 61e881b

Please sign in to comment.