Skip to content

Commit

Permalink
make working directory configurable
Browse files Browse the repository at this point in the history
  • Loading branch information
tmclaugh committed Oct 14, 2024
1 parent 2470b78 commit 4e2adbd
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,10 @@ inputs:
description: NodeJS version file
required: false
default: ''
working_directory:
description: Working directory
required: false
default: '.'

runs:
using: composite
Expand All @@ -18,6 +22,7 @@ runs:
- name: Check NodeJS version
id: check-node-version
shell: bash
working-directory: ${{ inputs.working_directory }}
env:
NODE_VERSION: ${{ inputs.node_version }}
NODE_VERSION_FILE: ${{ inputs.node_version_file }}
Expand All @@ -33,6 +38,7 @@ runs:
- name: Setup NodeJS
id: install-node
uses: actions/setup-node@v4
working-directory: ${{ inputs.working_directory }}
with:
node-version: '${{ inputs.node_version }}'
node-version-file: '${{ inputs.node_version_file }}'
Expand All @@ -42,6 +48,7 @@ runs:
- name: Check yarn.lock
id: check-yarn-lock
shell: bash
working-directory: ${{ inputs.working_directory }}
run: |
if [ -f yarn.lock ]; \
then \
Expand All @@ -53,6 +60,7 @@ runs:
- name: Install dependencies
id: install-node-deps
shell: bash
working-directory: ${{ inputs.working_directory }}
env:
HAS_YARN_LOCK: ${{ steps.check-pipfile-lock.outputs.has-lock }}
run: |
Expand Down

0 comments on commit 4e2adbd

Please sign in to comment.