mirror of
https://github.com/wagoid/commitlint-github-action.git
synced 2025-11-07 16:06:56 +00:00
Merge pull request #59 from jdbruijn/docs/set-env
docs: use `env` to replace deprecated `set-env` in example
This commit is contained in:
commit
e14514cdf8
1 changed files with 4 additions and 4 deletions
|
|
@ -136,11 +136,11 @@ jobs:
|
||||||
with:
|
with:
|
||||||
node-version: '10.x'
|
node-version: '10.x'
|
||||||
- run: npm install
|
- run: npm install
|
||||||
- name: Add dependencies for commitlint action
|
# Run the commitlint action, considering its own dependencies and yours as well 🚀
|
||||||
# $GITHUB_WORKSPACE is the path to your repository
|
# `github.workspace` is the path to your repository.
|
||||||
run: echo "::set-env name=NODE_PATH::$GITHUB_WORKSPACE/node_modules"
|
|
||||||
# Now the commitlint action will run considering its own dependencies and yours as well 🚀
|
|
||||||
- uses: wagoid/commitlint-github-action@v2
|
- uses: wagoid/commitlint-github-action@v2
|
||||||
|
env:
|
||||||
|
NODE_PATH: ${{ github.workspace }}/node_modules
|
||||||
```
|
```
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue