-
Notifications
You must be signed in to change notification settings - Fork 176
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Allow user to change working directory
- Loading branch information
1 parent
75c00d8
commit 60b1616
Showing
3 changed files
with
16 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -54,6 +54,14 @@ jobs: | |
serverless-version: 3 | ||
``` | ||
## Change your working directory | ||
```yaml | ||
- name: Deploy with a particular version | ||
uses: serverless/[email protected] | ||
with: | ||
working-directory: ./foo | ||
``` | ||
## Usage with serverless plugins | ||
Change your action in this way, according to [this issue](https://github.com/serverless/github-action/issues/28), thanks to @matthewpoer: | ||
```yaml | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
#!/bin/sh -l | ||
npm i -g serverless@${1/v/} | ||
serverless $2 | ||
cd $1 | ||
npm i -g serverless@${2/v/} | ||
serverless $3 |