Skip to content
This repository has been archived by the owner on Feb 25, 2021. It is now read-only.

Commit

Permalink
GitHub Action: Avoid issues with set-env used by older versions of se…
Browse files Browse the repository at this point in the history
…tup actions

https://github.blog/changelog/2020-10-01-github-actions-deprecating-set-env-and-add-path-commands/
contains:
`Action authors who are using the toolkit should update the @actions/core package to v1.2.6 or greater to get the updated addPath and exportVariable functions.`
and
`Action and workflow authors who are setting environment variables via STDOUT should update any usage of the set-env and add-path workflow commands to use the new environment files.`

Which setup-node appear to have done in actions/setup-node#200 - the commits for which have been tagged v2.1.2.
And which setup-ruby appear to have done in ruby/setup-ruby#91 - the commits for which have been tagged v1.46.1.
  • Loading branch information
Krenair committed Nov 17, 2020
1 parent 72dcd23 commit fbb8267
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/ruby.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,15 +26,15 @@ jobs:
# To automatically get bug fixes and new Ruby versions for ruby/setup-ruby,
# change this to (see https://github.com/ruby/setup-ruby#versioning):
# uses: ruby/setup-ruby@v1
uses: ruby/setup-ruby@ec106b438a1ff6ff109590de34ddc62c540232e0
uses: ruby/setup-ruby@8bc9ca9ace0139aae24423f15269b9673354b495
with:
ruby-version: 2.7.1

- name: Install dependencies
run: bundle install

- name: Setup Node
uses: actions/setup-node@v1
uses: actions/setup-node@v2.1.2
with:
node-version: 12.16.3

Expand Down

0 comments on commit fbb8267

Please sign in to comment.