mirror of
https://github.com/dagger/dagger-for-github.git
synced 2026-01-01 21:19:44 +11:00
set args from gh variables
Signed-off-by: kpenfound <kyle@dagger.io>
This commit is contained in:
parent
40f61d6b3e
commit
05e5123a33
1 changed files with 3 additions and 2 deletions
|
|
@ -80,14 +80,15 @@ runs:
|
||||||
INPUT_MODULE: ${{ inputs.module }}
|
INPUT_MODULE: ${{ inputs.module }}
|
||||||
run: |
|
run: |
|
||||||
tmpout=$(mktemp)
|
tmpout=$(mktemp)
|
||||||
INPUT_ARGS="${INPUT_ARGS:-$INPUT_CALL}"
|
ARGS="${{ inputs.args }}"
|
||||||
|
ARGS="${INPUT_ARGS:-"${{ inputs.call }}"}"
|
||||||
cd ${{ inputs.workdir }} && { \
|
cd ${{ inputs.workdir }} && { \
|
||||||
DAGGER_CLOUD_TOKEN=${{ inputs.cloud-token }} \
|
DAGGER_CLOUD_TOKEN=${{ inputs.cloud-token }} \
|
||||||
dagger \
|
dagger \
|
||||||
${{ inputs.dagger-flags }} \
|
${{ inputs.dagger-flags }} \
|
||||||
${{ inputs.verb }} \
|
${{ inputs.verb }} \
|
||||||
${INPUT_MODULE:+-m $INPUT_MODULE} \
|
${INPUT_MODULE:+-m $INPUT_MODULE} \
|
||||||
$INPUT_ARGS; } | tee "${tmpout}"
|
$ARGS; } | tee "${tmpout}"
|
||||||
|
|
||||||
(echo -n "stdout=" && cat "${tmpout}") >> "$GITHUB_OUTPUT"
|
(echo -n "stdout=" && cat "${tmpout}") >> "$GITHUB_OUTPUT"
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue