mirror of
https://github.com/iNavFlight/inav.git
synced 2025-07-20 23:05:17 +03:00
Migrate from set-env to env files
This commit is contained in:
parent
3ce5833f7c
commit
e07cbeb49b
1 changed files with 2 additions and 2 deletions
4
.github/workflows/ci.yml
vendored
4
.github/workflows/ci.yml
vendored
|
@ -27,8 +27,8 @@ jobs:
|
||||||
COMMIT_ID=${COMMIT_ID:-${{ github.sha }}}
|
COMMIT_ID=${COMMIT_ID:-${{ github.sha }}}
|
||||||
BUILD_SUFFIX=ci-$(date '+%Y%m%d')-$(git rev-parse --short ${COMMIT_ID})
|
BUILD_SUFFIX=ci-$(date '+%Y%m%d')-$(git rev-parse --short ${COMMIT_ID})
|
||||||
VERSION=$(grep project CMakeLists.txt|awk -F VERSION '{ gsub(/^[ \t]+|[ \t\)]+$/, "", $2); print $2 }')
|
VERSION=$(grep project CMakeLists.txt|awk -F VERSION '{ gsub(/^[ \t]+|[ \t\)]+$/, "", $2); print $2 }')
|
||||||
echo "::set-env name=BUILD_SUFFIX::${BUILD_SUFFIX}"
|
echo "BUILD_SUFFIX=${BUILD_SUFFIX}" >> $GITHUB_ENV
|
||||||
echo "::set-env name=BUILD_NAME::inav-${VERSION}-${BUILD_SUFFIX}"
|
echo "BUILD_NAME=inav-${VERSION}-${BUILD_SUFFIX}" >> $GITHUB_ENV
|
||||||
- uses: actions/cache@v1
|
- uses: actions/cache@v1
|
||||||
with:
|
with:
|
||||||
path: downloads
|
path: downloads
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue