Skip to content

Commit

Permalink
MNT: Don't use deprecated functions in GitHub Actions
Browse files Browse the repository at this point in the history
  • Loading branch information
dopplershift committed Oct 6, 2020
1 parent 8eceafe commit 588784c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ jobs:

- name: Enable linkchecker for PRs
if: ${{ github.event_name == 'pull_request' && matrix.check-links == true }}
run: echo "::set-env name=LINKCHECKER::linkcheck"
run: echo "LINKCHECKER=linkcheck" >> $GITHUB_ENV

- name: Build docs
run: |
Expand All @@ -120,7 +120,7 @@ jobs:
# branch that's not master (which is confined to n.nn.x above) or on a tag.
- name: Set doc version
if: ${{ github.event_name != 'push' || !contains(github.ref, 'master') }}
run: echo "::set-env name=DOC_VERSION::v$(python -c 'import metpy; print(metpy.__version__.rsplit(".", maxsplit=2)[0])')"
run: echo "DOC_VERSION=v$(python -c 'import metpy; print(metpy.__version__.rsplit(".", maxsplit=2)[0])')" >> $GITHUB_ENV

- name: Upload to GitHub Pages
if: ${{ github.event_name != 'pull_request' && matrix.experimental == false }}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/linting.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ jobs:
curl -sfL \
https://github.com/reviewdog/reviewdog/raw/master/install.sh | \
sh -s -- -b $HOME/bin
echo ::add-path::$HOME/bin
echo "$HOME/bin" >> $GITHUB_PATH
- name: Run flake8
env:
Expand Down

0 comments on commit 588784c

Please sign in to comment.