mirror of
https://github.com/wagoid/commitlint-github-action.git
synced 2025-11-07 08:06:54 +00:00
docs: use env to replace deprecated set-env in example
`set-env` is deprecated and disabled as of November 16th, 2020 as mentioned on the GitHub blog. https://github.blog/changelog/2020-10-01-github-actions-deprecating-set-env-and-add-path-commands/
This commit is contained in:
parent
87922b3ea6
commit
c2f10d94ca
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