Skip to content

Commit

Permalink
CI: kernel: fix deprecation of set-output
Browse files Browse the repository at this point in the history
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 <[email protected]>
(cherry picked from commit 6d4bcadaa343cb969f370631a5ed5338306c056e)
  • Loading branch information
Ansuel authored and BKPepe committed Dec 4, 2022
1 parent 4460990 commit 1ae1959
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/kernel.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,14 +35,14 @@ jobs:
run: |
OWNER_LC=$(echo "${{ github.repository_owner }}" \
| tr '[:upper:]' '[:lower:]')
echo "::set-output name=owner_lc::$OWNER_LC"
echo "owner_lc=$OWNER_LC" >> $GITHUB_OUTPUT
- name: Generate ccache hash
id: ccache_hash
run: |
CCACHE_HASH=$(md5sum include/kernel-* | 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
id: find_targets
Expand All @@ -64,7 +64,7 @@ jobs:
echo "$JSON"
echo -e "\n---- targets ----\n"
echo "::set-output name=target::$JSON"
echo "target=$JSON" >> $GITHUB_OUTPUT
build:
name: Build Kernel with external toolchain
Expand Down

0 comments on commit 1ae1959

Please sign in to comment.