From 6eac5db521e2a42d833c32350bf8e5a6a8715574 Mon Sep 17 00:00:00 2001 From: david gauchard Date: Sun, 16 May 2021 02:50:38 +0200 Subject: [PATCH] update release github action - following this error message Error: Unable to process command '::set-env name=TRAVIS_TAG::3.0.0' successfully. Error: The `set-env` command is disabled. Please upgrade to using Environment Files or opt into unsecure command execution by setting the `ACTIONS_ALLOW_UNSECURE_COMMANDS` environment variable to `true`. For more information see: https://github.blog/changelog/2020-10-01-github-actions-deprecating-set-env-and-add-path-commands/ - this guide: https://docs.github.com/en/actions/reference/workflow-commands-for-github-actions#environment-files --- .github/workflows/release-to-publish.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/release-to-publish.yml b/.github/workflows/release-to-publish.yml index a2a27deb76..852f3b69a5 100644 --- a/.github/workflows/release-to-publish.yml +++ b/.github/workflows/release-to-publish.yml @@ -36,12 +36,13 @@ jobs: - uses: actions/checkout@v2 with: submodules: true + fetch-depth: 0 - uses: actions/setup-python@v2 with: python-version: '3.x' - name: Set GIT tag name run: | - echo "::set-env name=TRAVIS_TAG::$(git describe --exact-match --tags)" + echo "TRAVIS_TAG=$(git describe --exact-match --tags)" >> $GITHUB_ENV - name: Deploy updated JSON env: TRAVIS_BUILD_DIR: ${{ github.workspace }}