Skip to content

Commit

Permalink
chore
Browse files Browse the repository at this point in the history
  • Loading branch information
kengo-k committed Jun 1, 2024
1 parent 37f5741 commit e8a6188
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
5 changes: 5 additions & 0 deletions action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,12 @@ runs:
using: 'composite'
steps:
- name: 'Call Another Action'
id: js_action
uses: kengo-k/docker-build/internal/get@main
with:
token: ${{ inputs.token }}
args: ${{ inputs.args }}

- name: 'Display Output'
shell: bash
run: echo "Output from JS Action: ${{ steps.js_action.outputs.docker_command }}"
5 changes: 3 additions & 2 deletions internal/get/index.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@

import { getInput, setFailed } from '@actions/core';
import { exec } from '@actions/exec';
import { getInput, setFailed, setOutput } from '@actions/core';
import github from '@actions/github';
import { load } from 'js-yaml';
import { z } from 'zod';
Expand Down Expand Up @@ -63,6 +62,8 @@ async function main() {
const imageTag = imageTags.join('-');
const buildArgs = ['build', '-f', argObj.path, '-t', `${argObj.name}:${imageTag}`, '.'];
console.log('Current directory:', process.cwd());

setOutput('docker_command', 'HELLO');
}
}

Expand Down

0 comments on commit e8a6188

Please sign in to comment.