You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
## Fix "This command can only be run in a Serverless service directory" error
60
+
Change your action in this way, according to [this issue](https://github.com/serverless/github-action/issues/53#issuecomment-1059839383), thanks to @nikhuber:
61
+
```yaml
62
+
- name: Enter dir and deploy
63
+
uses: serverless/github-action@v3
64
+
with:
65
+
args: -c "cd ./<your-dir> && serverless deploy"
66
+
entrypoint: /bin/sh
67
+
```
51
68
52
-
## Serverless v2.x
53
-
Change `serverless/github-action@master` to `serverless/github-action@v2`
54
69
55
-
## Usage with plugins
56
-
See example in [this issue](https://github.com/serverless/github-action/issues/28)
0 commit comments