Skip to content

Commit

Permalink
fix output name
Browse files Browse the repository at this point in the history
  • Loading branch information
kengo-k committed Jun 1, 2024
1 parent 3e158ed commit 6f6753f
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,8 @@ runs:
- name: 'Display Output'
shell: bash
run: |
output_array='${{ steps.js_action.outputs.docker_command }}'
echo "$output_array" | jq -c '.[]' | while read -r element; do
build_args='${{ steps.js_action.outputs.build_args }}'
echo "$build_args" | jq -c '.[]' | while read -r element; do
path=$(echo "$element" | jq -r '.path')
name=$(echo "$element" | jq -r '.name')
tag=$(echo "$element" | jq -r '.tag')
Expand Down
2 changes: 1 addition & 1 deletion internal/get/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ inputs:
description: 'Who to greet'
required: true
outputs:
docker_command:
build_args:
description: 'The generated docker command'
runs:
using: 'docker'
Expand Down
2 changes: 1 addition & 1 deletion internal/get/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ async function main() {
}
}
}
setOutput('docker_command', JSON.stringify(outputs))
setOutput('build_args', JSON.stringify(outputs))
}

try {
Expand Down

0 comments on commit 6f6753f

Please sign in to comment.