summaryrefslogtreecommitdiff
path: root/.github/workflows
diff options
context:
space:
mode:
authorJeff Epler <jepler@gmail.com>2020-10-08 13:58:45 -0500
committerJeff Epler <jepler@gmail.com>2020-10-08 16:20:23 -0500
commit3149f5bfd8baa59b52fbd8e98c036caa53cd2ce6 (patch)
treebf07555039c0e943738ee4dbcafe1566e0c2ee05 /.github/workflows
parent763e14f815423207984586c276c8787eefe19b68 (diff)
workflows: Replace deprecated ::set-env
Diffstat (limited to '.github/workflows')
-rw-r--r--.github/workflows/build.yml6
-rw-r--r--.github/workflows/pre-commit.yml2
2 files changed, 4 insertions, 4 deletions
diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml
index dc3dc6835..dcd91b312 100644
--- a/.github/workflows/build.yml
+++ b/.github/workflows/build.yml
@@ -28,7 +28,7 @@ jobs:
- name: CircuitPython version
run: |
git describe --dirty --tags
- echo "::set-env name=CP_VERSION::$(git describe --dirty --tags)"
+ echo >>$GITHUB_ENV CP_VERSION=$(git describe --dirty --tags)
- name: Set up Python 3.8
uses: actions/setup-python@v1
with:
@@ -132,7 +132,7 @@ jobs:
- name: Install dependencies
run: |
brew install gettext awscli
- echo "::set-env name=PATH::/usr/local/opt/gettext/bin:$PATH"
+ echo >>$GITHUB_PATH /usr/local/opt/gettext/bin
- name: Versions
run: |
gcc --version
@@ -146,7 +146,7 @@ jobs:
- name: CircuitPython version
run: |
git describe --dirty --tags
- echo "::set-env name=CP_VERSION::$(git describe --dirty --tags)"
+ echo >>$GITHUB_ENV CP_VERSION=$(git describe --dirty --tags)
- name: Build mpy-cross
run: make -C mpy-cross -j2
- uses: actions/upload-artifact@v2
diff --git a/.github/workflows/pre-commit.yml b/.github/workflows/pre-commit.yml
index 966310304..eac9bfe09 100644
--- a/.github/workflows/pre-commit.yml
+++ b/.github/workflows/pre-commit.yml
@@ -16,7 +16,7 @@ jobs:
- uses: actions/checkout@v1
- uses: actions/setup-python@v1
- name: set PY
- run: echo "::set-env name=PY::$(python -c 'import hashlib, sys;print(hashlib.sha256(sys.version.encode()+sys.executable.encode()).hexdigest())')"
+ run: echo >>$GITHUB_ENV PY="$(python -c 'import hashlib, sys;print(hashlib.sha256(sys.version.encode()+sys.executable.encode()).hexdigest())')"
- uses: actions/cache@v1
with:
path: ~/.cache/pre-commit