From c2f10d94cae7d5bf1aca2947e857617ee6077fa2 Mon Sep 17 00:00:00 2001 From: Jeroen de Bruijn Date: Tue, 17 Nov 2020 07:28:38 +0100 Subject: [PATCH] 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/ --- README.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index d845206..3213ff8 100644 --- a/README.md +++ b/README.md @@ -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 ``` ---