Skip to content

Commit 0167d91

Browse files
authored
chore: add working-directory input to prepare-install action (typescript-eslint#6181)
1 parent bcad11b commit 0167d91

File tree

2 files changed

+17
-2
lines changed

2 files changed

+17
-2
lines changed

.cspell.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@
4747
"autofix",
4848
"autofixers",
4949
"autofixes",
50+
"automations",
5051
"backticks",
5152
"bigint",
5253
"bivariant",

.github/actions/prepare-install/action.yml

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,24 @@
1-
name: 'Prepare: Checkout and Install'
2-
description: 'Prepares the repo for a job by checking out and installing dependencies'
1+
# IMPORTANT NOTE TO MAINTAINERS
2+
#
3+
# Changes to this composite action should be carefully considered and reviewed because it is referenced
4+
# and executed by multiple workflows in our private-automations repository.
5+
#
6+
# Ensure that a member of @typescript-eslint/core-team tests changes there before merging.
7+
8+
name: 'Prepare: Install'
9+
description: 'Prepares the repo by installing dependencies'
310
inputs:
411
node-version:
512
description: 'The node version to setup'
613
required: true
714
registry-url:
815
description: 'Define registry-url'
916
required: false
17+
# NOTE: This is required for our use-case of sharing this action across multiple repos
18+
working-directory:
19+
description: 'Override the working directory to run the installation in'
20+
required: false
21+
default: '.'
1022

1123
# outputs: - no outputs
1224

@@ -15,6 +27,7 @@ runs:
1527
steps:
1628
- name: echo github.ref
1729
shell: bash
30+
working-directory: ${{ inputs.working-directory }}
1831
run: echo ${{ github.ref }}
1932

2033
- name: Use Node.js ${{ inputs.node-version }}
@@ -40,6 +53,7 @@ runs:
4053
# if the cache was hit - this will run in <1s
4154
- name: Install dependencies
4255
shell: bash
56+
working-directory: ${{ inputs.working-directory }}
4357
run: |
4458
yarn --ignore-engines --frozen-lockfile --ignore-scripts
4559
yarn check-clean-workspace-after-install

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy