5
0
Fork 0
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:
Jeroen de Bruijn 2020-11-17 07:28:38 +01:00
parent 87922b3ea6
commit c2f10d94ca
No known key found for this signature in database
GPG key ID: 94DD99A281A21364

View file

@ -136,11 +136,11 @@ jobs:
with:
node-version: '10.x'
- run: npm install
- name: Add dependencies for commitlint action
# $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 🚀
# Run the commitlint action, considering its own dependencies and yours as well 🚀
# `github.workspace` is the path to your repository.
- uses: wagoid/commitlint-github-action@v2
env:
NODE_PATH: ${{ github.workspace }}/node_modules
```
---