Replace set-env with new method
set-env has been deprecated
This commit is contained in:
parent
fbc0f71e21
commit
e75e4b4b5f
1 changed files with 2 additions and 1 deletions
3
.github/workflows/cpal.yml
vendored
3
.github/workflows/cpal.yml
vendored
|
|
@ -63,11 +63,12 @@ jobs:
|
||||||
continue-on-error: true
|
continue-on-error: true
|
||||||
run: |
|
run: |
|
||||||
CPAL_TMP=$(mktemp /tmp/cpalXXX.txt) || echo "::error::mktemp error"
|
CPAL_TMP=$(mktemp /tmp/cpalXXX.txt) || echo "::error::mktemp error"
|
||||||
echo "::set-env name=CPAL_TMP::$CPAL_TMP"
|
echo "CPAL_TMP=$CPAL_TMP" >> $GITHUB_ENV
|
||||||
cargo publish --token $CRATESIO_TOKEN 2> $CPAL_TMP
|
cargo publish --token $CRATESIO_TOKEN 2> $CPAL_TMP
|
||||||
- name: Check if cpal is already published
|
- name: Check if cpal is already published
|
||||||
run: |
|
run: |
|
||||||
empty=0
|
empty=0
|
||||||
|
CPAL_TMP="${{ env.CPAL_TMP }}"
|
||||||
grep -q '[^[:space:]]' < $CPAL_TMP || empty=1
|
grep -q '[^[:space:]]' < $CPAL_TMP || empty=1
|
||||||
[ $empty -eq 0 ] && cat $CPAL_TMP
|
[ $empty -eq 0 ] && cat $CPAL_TMP
|
||||||
[ $empty -eq 1 ] || grep -q "is already uploaded" < $CPAL_TMP
|
[ $empty -eq 1 ] || grep -q "is already uploaded" < $CPAL_TMP
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue