Skip to content

Commit 9cd2d42

Browse files
committed
Fix env variables
1 parent 34d999e commit 9cd2d42

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/release.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -26,14 +26,14 @@ jobs:
2626
python setup.py sdist bdist_wheel
2727
- name: Get version number
2828
id: get_version
29-
run: echo ::set-env name=VERSION::$(python3 -c "import simphony; print(simphony.__version__)")
29+
run: echo "VERSION=$(python3 -c "import simphony; print(simphony.__version__)")" >> $GITHUB_ENV
3030
- name: Load Release text
3131
run: |
3232
BODY=$(cat ./docs/changelog/${{ env.VERSION }}-changelog.md)
3333
BODY="${BODY//'%'/'%25'}"
3434
BODY="${BODY//$'\n'/'%0A'}"
3535
BODY="${BODY//$'\r'/'%0D'}"
36-
echo "::set-env name=BODY::$BODY"
36+
echo "BODY=$BODY" >> $GITHUB_ENV
3737
- name: Publish to PyPI
3838
uses: pypa/gh-action-pypi-publish@v1.1.0
3939
with:

0 commit comments

Comments
 (0)