gh-actions: release-tests: properly configure GH token for sudo

This commit is contained in:
Martine Lenders 2021-04-20 11:03:47 +02:00
parent 2a3fbf38f6
commit d06c532410
No known key found for this signature in database
GPG Key ID: CCD317364F63286F

View File

@ -54,7 +54,11 @@ jobs:
steps:
- name: Generate .riotgithubtoken
run: |
echo '${{ secrets.RIOT_CI_ACCESS_TOKEN }}' > ~/.riotgithubtoken
if [ -z "${{ matrix.sudo }}" ]; then
echo '${{ secrets.RIOT_CI_ACCESS_TOKEN }}' > ~/.riotgithubtoken
else
sudo sh -c "echo '${{ secrets.RIOT_CI_ACCESS_TOKEN }}' > ~/.riotgithubtoken"
fi
- name: Setup IoT-LAB credentials
if: ${{ matrix.pytest_mark == 'iotlab_creds' }}
run: |