Skip to content

Commit 1b307c9

Browse files
authored
Merge pull request adafruit#3527 from jepler/issue3526-actions-setenv
workflows: Replace deprecated ::set-env
2 parents b578afa + 3149f5b commit 1b307c9

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

.github/workflows/build.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ jobs:
2828
- name: CircuitPython version
2929
run: |
3030
git describe --dirty --tags
31-
echo "::set-env name=CP_VERSION::$(git describe --dirty --tags)"
31+
echo >>$GITHUB_ENV CP_VERSION=$(git describe --dirty --tags)
3232
- name: Set up Python 3.8
3333
uses: actions/setup-python@v1
3434
with:
@@ -132,7 +132,7 @@ jobs:
132132
- name: Install dependencies
133133
run: |
134134
brew install gettext awscli
135-
echo "::set-env name=PATH::/usr/local/opt/gettext/bin:$PATH"
135+
echo >>$GITHUB_PATH /usr/local/opt/gettext/bin
136136
- name: Versions
137137
run: |
138138
gcc --version
@@ -146,7 +146,7 @@ jobs:
146146
- name: CircuitPython version
147147
run: |
148148
git describe --dirty --tags
149-
echo "::set-env name=CP_VERSION::$(git describe --dirty --tags)"
149+
echo >>$GITHUB_ENV CP_VERSION=$(git describe --dirty --tags)
150150
- name: Build mpy-cross
151151
run: make -C mpy-cross -j2
152152
- uses: actions/upload-artifact@v2

.github/workflows/pre-commit.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ jobs:
1616
- uses: actions/checkout@v1
1717
- uses: actions/setup-python@v1
1818
- name: set PY
19-
run: echo "::set-env name=PY::$(python -c 'import hashlib, sys;print(hashlib.sha256(sys.version.encode()+sys.executable.encode()).hexdigest())')"
19+
run: echo >>$GITHUB_ENV PY="$(python -c 'import hashlib, sys;print(hashlib.sha256(sys.version.encode()+sys.executable.encode()).hexdigest())')"
2020
- uses: actions/cache@v1
2121
with:
2222
path: ~/.cache/pre-commit

0 commit comments

Comments
 (0)