Commit de48cfdb authored by Sviatoslav Sydorenko's avatar Sviatoslav Sydorenko

Temporarily allow `set-env` GHA commands

Refs:
* github.com/deadsnakes/issues/issues/135
* github.blog/changelog/2020-10-01-github-actions-deprecating-set-env-and-add-path-commands/
parent ec944a40
......@@ -50,6 +50,11 @@ jobs:
if: >-
endsWith(env.PYTHON_VERSION, '-beta') ||
endsWith(env.PYTHON_VERSION, '-dev')
# FIXME: replace `set-env` with a newer alternative
# Refs:
# * github.blog/changelog/2020-10-01-github-actions-deprecating-set-env-and-add-path-commands/
env:
ACTIONS_ALLOW_UNSECURE_COMMANDS: true
run: |
from __future__ import print_function
python_version = '${{ env.PYTHON_VERSION }}'.replace('-beta', '')
......@@ -59,6 +64,12 @@ jobs:
- name: Set up Python ${{ env.PYTHON_VERSION }} (deadsnakes)
uses: deadsnakes/action@v1.0.0
if: fromJSON(env.USE_DEADSNAKES) && true || false
# FIXME: drop once deadsnakes/action gets fixed
# Refs:
# * github.com/deadsnakes/issues/issues/135
# * github.blog/changelog/2020-10-01-github-actions-deprecating-set-env-and-add-path-commands/
env:
ACTIONS_ALLOW_UNSECURE_COMMANDS: true
with:
python-version: ${{ env.PYTHON_VERSION }}
- name: Set up Python ${{ env.PYTHON_VERSION }}
......@@ -99,6 +110,11 @@ jobs:
python -m pip freeze --all
- name: Adjust TOXENV for PyPy
if: startsWith(env.PYTHON_VERSION, 'pypy')
# FIXME: replace `set-env` with a newer alternative
# Refs:
# * github.blog/changelog/2020-10-01-github-actions-deprecating-set-env-and-add-path-commands/
env:
ACTIONS_ALLOW_UNSECURE_COMMANDS: true
run: >-
echo "::set-env name=TOXENV::${{ env.PYTHON_VERSION }}"
- name: Log env vars
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment