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 timeout-minutes: 60
steps: steps:
- name: Check out code - name: Check out code
uses: actions/checkout@v2 uses: actions/checkout@v3
with: with:
# Needed for version determination to work # Needed for version determination to work
fetch-depth: 0 fetch-depth: 0
@ -36,10 +36,10 @@ jobs:
# Find common base between master and HEAD to use as cache key. # 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 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 - name: CCache
uses: actions/cache@v2 uses: actions/cache@v3
with: with:
key: ccache-${{ runner.os }}-${{ steps.setup-ccache.outputs.key }} key: ccache-${{ runner.os }}-${{ steps.setup-ccache.outputs.key }}
restore-keys: | restore-keys: |