From 66edf65db613078a23e21e67ecb6add5d3e0bd4f Mon Sep 17 00:00:00 2001 From: heitorlessa Date: Fri, 20 Nov 2020 14:03:50 +0100 Subject: [PATCH] fix: replace now deprecated set-env with new GitHub Env file --- .github/workflows/publish.yml | 2 +- .github/workflows/python_docs.yml | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 058c8490934..3c504f63282 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -35,7 +35,7 @@ jobs: - name: Set release notes tag run: | export RELEASE_TAG_VERSION=${{ github.event.release.tag_name }} - echo ::set-env name=RELEASE_TAG_VERSION::${RELEASE_TAG_VERSION:1} + echo "RELEASE_TAG_VERSION=${RELEASE_TAG_VERSION:1}" >> $GITHUB_ENV - name: Ensure new version is also set in pyproject and CHANGELOG run: | grep --regexp "\[${RELEASE_TAG_VERSION}\]" CHANGELOG.md diff --git a/.github/workflows/python_docs.yml b/.github/workflows/python_docs.yml index 4e913355386..744161064f3 100644 --- a/.github/workflows/python_docs.yml +++ b/.github/workflows/python_docs.yml @@ -27,8 +27,8 @@ jobs: - name: Capture branch and tag id: branch_name run: | - echo ::set-env name=SOURCE_BRANCH::${GITHUB_REF#refs/heads/} - echo ::set-env name=SOURCE_TAG::${GITHUB_REF#refs/tags/} + echo "SOURCE_BRANCH=${GITHUB_REF#refs/heads/}" >> $GITHUB_ENV + echo "SOURCE_TAG=${GITHUB_REF#refs/tags/}" >> $GITHUB_ENV - name: Build docs website run: make build-docs-website - name: Build docs API reference