snap: fix GitHub Action warnings

`set-output` is getting deprecated, so need to move to newer ways.

Signed-off-by: Michał Sawicz (Saviq) <michal@sawicz.net>
This commit is contained in:
Michał Sawicz (Saviq) 2023-01-19 10:56:58 +01:00 committed by Dirk Hohndel
parent 76c4b76027
commit e335c7a20d

View file

@ -15,7 +15,7 @@ jobs:
timeout-minutes: 60
steps:
- name: Check out code
uses: actions/checkout@v2
uses: actions/checkout@v3
with:
# Needed for version determination to work
fetch-depth: 0
@ -36,10 +36,10 @@ jobs:
# Find common base between master and HEAD to use as cache key.
git -c protocol.version=2 fetch --no-tags --prune --progress --no-recurse-submodules origin master
echo "::set-output name=key::$( git merge-base origin/master ${{ github.sha }} )"
echo "key=$( git merge-base origin/master ${{ github.sha }} )" >> $GITHUB_OUTPUT
- name: CCache
uses: actions/cache@v2
uses: actions/cache@v3
with:
key: ccache-${{ runner.os }}-${{ steps.setup-ccache.outputs.key }}
restore-keys: |