Skip to content

Commit

Permalink
Try JS action (take manastech#1)
Browse files Browse the repository at this point in the history
  • Loading branch information
ysbaddaden committed Mar 31, 2022
1 parent 90ee988 commit 69d8347
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 18 deletions.
4 changes: 0 additions & 4 deletions Dockerfile

This file was deleted.

3 changes: 3 additions & 0 deletions action.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
const { env } = require("process")

console.log(env)
28 changes: 14 additions & 14 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,17 +26,17 @@ inputs:
type: string

runs:
using: docker
image: Dockerfile

steps:
- run: ./action.sh
env:
INPUT_SKIP_LOGIN: ${{ inputs.skip-login }}
INPUT_LATEST: ${{ inputs.latest }}
INPUT_REPOSITORY: ${{ inputs.repository }}
INPUT_REPOSITORY_SUFFIX: ${{ inputs.repository-suffix }}
INPUT_TAG_SUFFIX: ${{ inputs.tag-suffix }}
INPUT_BUILD_DIRECTORY: ${{ inputs.build-directory }}
INPUT_BUILD_OPTIONS: ${{ inputs.build-options }}
shell: bash
using: node:16
main: action.js

# steps:
# - run: /action.sh
# env:
# INPUT_SKIP_LOGIN: ${{ inputs.skip-login }}
# INPUT_LATEST: ${{ inputs.latest }}
# INPUT_REPOSITORY: ${{ inputs.repository }}
# INPUT_REPOSITORY_SUFFIX: ${{ inputs.repository-suffix }}
# INPUT_TAG_SUFFIX: ${{ inputs.tag-suffix }}
# INPUT_BUILD_DIRECTORY: ${{ inputs.build-directory }}
# INPUT_BUILD_OPTIONS: ${{ inputs.build-options }}
# shell: bash

0 comments on commit 69d8347

Please sign in to comment.