ci: use renovate token if available (#565)

This commit is contained in:
Michael Kriese 2021-08-23 11:21:37 +02:00 committed by GitHub
parent b50b71e29e
commit 060979e4d4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -53,13 +53,24 @@ jobs:
run: npm ci run: npm ci
- name: Build - name: Build
run: npm run build run: npm run build
- name: Configure renovate token
run: |
if [[ "${RENOVATE_TOKEN}" != "" ]]; then
echo "RENOVATE_TOKEN=${RENOVATE_TOKEN}" >> $GITHUB_ENV
else
echo "RENOVATE_TOKEN=${GITHUB_TOKEN}" >> $GITHUB_ENV
fi
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
RENOVATE_TOKEN: ${{ secrets.RENOVATE_TOKEN }}
- name: Renovate test - name: Renovate test
uses: ./ uses: ./
env: env:
LOG_LEVEL: debug LOG_LEVEL: debug
with: with:
configurationFile: ${{ matrix.configurationFile }} configurationFile: ${{ matrix.configurationFile }}
token: ${{ secrets.GITHUB_TOKEN }}
build: build:
needs: [lint, commitlint, e2e] needs: [lint, commitlint, e2e]