5
0
Fork 0
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:
Wagner Santos 2020-11-20 18:07:04 -03:00 committed by GitHub
commit e14514cdf8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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
```
---