Skip to content

Commit

Permalink
set args from gh variables
Browse files Browse the repository at this point in the history
Signed-off-by: kpenfound <kyle@dagger.io>
  • Loading branch information
kpenfound committed Nov 11, 2024
1 parent 40f61d6 commit 05e5123
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -80,14 +80,15 @@ runs:
INPUT_MODULE: ${{ inputs.module }}
run: |
tmpout=$(mktemp)
INPUT_ARGS="${INPUT_ARGS:-$INPUT_CALL}"
ARGS="${{ inputs.args }}"
ARGS="${INPUT_ARGS:-"${{ inputs.call }}"}"
cd ${{ inputs.workdir }} && { \
DAGGER_CLOUD_TOKEN=${{ inputs.cloud-token }} \
dagger \
${{ inputs.dagger-flags }} \
${{ inputs.verb }} \
${INPUT_MODULE:+-m $INPUT_MODULE} \
$INPUT_ARGS; } | tee "${tmpout}"
$ARGS; } | tee "${tmpout}"
(echo -n "stdout=" && cat "${tmpout}") >> "$GITHUB_OUTPUT"
Expand Down

0 comments on commit 05e5123

Please sign in to comment.