CI: kernel: fix deprecation of set-output

From [0], github deprecated set-output with a better approach of
appending variables to $GITHUB_OUTPUT

[0] https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/

Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
This commit is contained in:
Christian Marangi 2022-10-21 16:09:19 +02:00
parent 9226f1e419
commit 6d4bcadaa3
No known key found for this signature in database
GPG Key ID: AC001D09ADBFEAD7

View File

@ -35,14 +35,14 @@ jobs:
run: | run: |
OWNER_LC=$(echo "${{ github.repository_owner }}" \ OWNER_LC=$(echo "${{ github.repository_owner }}" \
| tr '[:upper:]' '[:lower:]') | tr '[:upper:]' '[:lower:]')
echo "::set-output name=owner_lc::$OWNER_LC" echo "owner_lc=$OWNER_LC" >> $GITHUB_OUTPUT
- name: Generate ccache hash - name: Generate ccache hash
id: ccache_hash id: ccache_hash
run: | run: |
CCACHE_HASH=$(md5sum include/kernel-* | awk '{ print $1 }' \ CCACHE_HASH=$(md5sum include/kernel-* | awk '{ print $1 }' \
| md5sum | awk '{ print $1 }') | md5sum | awk '{ print $1 }')
echo "::set-output name=ccache_hash::$CCACHE_HASH" echo "ccache_hash=$CCACHE_HASH" >> $GITHUB_OUTPUT
- name: Set targets - name: Set targets
id: find_targets id: find_targets
@ -64,7 +64,7 @@ jobs:
echo "$JSON" echo "$JSON"
echo -e "\n---- targets ----\n" echo -e "\n---- targets ----\n"
echo "::set-output name=target::$JSON" echo "target=$JSON" >> $GITHUB_OUTPUT
build: build:
name: Build Kernel with external toolchain name: Build Kernel with external toolchain