gh-actions: release-tests: properly configure GH token for sudo
This commit is contained in:
parent
2a3fbf38f6
commit
d06c532410
6
.github/workflows/release-test.yml
vendored
6
.github/workflows/release-test.yml
vendored
@ -54,7 +54,11 @@ jobs:
|
|||||||
steps:
|
steps:
|
||||||
- name: Generate .riotgithubtoken
|
- name: Generate .riotgithubtoken
|
||||||
run: |
|
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
|
- name: Setup IoT-LAB credentials
|
||||||
if: ${{ matrix.pytest_mark == 'iotlab_creds' }}
|
if: ${{ matrix.pytest_mark == 'iotlab_creds' }}
|
||||||
run: |
|
run: |
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user