Moving away from deprecated GHA add-path
MODIFY
.github/workflows/cron.yml
.github/workflows/cron.yml
@@ -117,7 +117,7 @@ jobs:
- if: matrix.examples-test-matrix == '--no-latest-packages'
name: Set Pulumi to PATH
run: |
- echo "::add-path::$HOME/.pulumi/bin"
+ echo "$HOME/.pulumi/bin" >> $GITHUB_PATH
- name: Install Go dependencies
run: make ensure
- name: Run ${{ matrix.clouds }}${{ matrix.languages }} Tests
@@ -146,8 +146,8 @@ jobs:
run: curl -o- -L https://yarnpkg.com/install.sh | bash -s -- --version ${{ matrix.yarn-version }}
- name: Update PATH for Yarn
run: |
- echo "::add-path::$HOME/.yarn/bin"
- echo "::add-path::$HOME/.config/yarn/global/node_modules/.bin"
+ echo "$HOME/.yarn/bin" >> $GITHUB_PATH
+ echo "$HOME/.config/yarn/global/node_modules/.bin" >> $GITHUB_PATH
- name: setup linting tool
run: make install
- name: Lint typescript files

MODIFY
.github/workflows/pr.yml
.github/workflows/pr.yml
@@ -34,8 +34,8 @@ jobs:
run: curl -o- -L https://yarnpkg.com/install.sh | bash -s -- --version ${{ matrix.yarn-version }}
- name: Update PATH for Yarn
run: |
- echo "::add-path::$HOME/.yarn/bin"
- echo "::add-path::$HOME/.config/yarn/global/node_modules/.bin"
+ echo "$HOME/.yarn/bin" >> $GITHUB_PATH
+ echo "$HOME/.config/yarn/global/node_modules/.bin" >> $GITHUB_PATH
- name: setup linting tool
run: make install
- name: Lint typescript files

MODIFY
.github/workflows/run-tests-command.yml
.github/workflows/run-tests-command.yml
@@ -142,8 +142,8 @@ jobs:
run: curl -o- -L https://yarnpkg.com/install.sh | bash -s -- --version ${{ matrix.yarn-version }}
- name: Update PATH for Yarn
run: |
- echo "::add-path::$HOME/.yarn/bin"
- echo "::add-path::$HOME/.config/yarn/global/node_modules/.bin"
+ echo "$HOME/.yarn/bin" >> $GITHUB_PATH
+ echo "$HOME/.config/yarn/global/node_modules/.bin" >> $GITHUB_PATH
- name: setup linting tool
run: make install
- name: Lint typescript files

Moving away from deprecated GHA add-path (#834)