Skip to content

Commit 75e9113

Browse files
authored
update release github action (#8036)
- 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
1 parent 7b6baf0 commit 75e9113

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

.github/workflows/release-to-publish.yml

+2-1
Original file line numberDiff line numberDiff line change
@@ -36,12 +36,13 @@ jobs:
3636
- uses: actions/checkout@v2
3737
with:
3838
submodules: true
39+
fetch-depth: 0
3940
- uses: actions/setup-python@v2
4041
with:
4142
python-version: '3.x'
4243
- name: Set GIT tag name
4344
run: |
44-
echo "::set-env name=TRAVIS_TAG::$(git describe --exact-match --tags)"
45+
echo "TRAVIS_TAG=$(git describe --exact-match --tags)" >> $GITHUB_ENV
4546
- name: Deploy updated JSON
4647
env:
4748
TRAVIS_BUILD_DIR: ${{ github.workspace }}

0 commit comments

Comments
 (0)