mirror of
https://github.com/renovatebot/github-action.git
synced 2025-12-16 17:02:36 +00:00
ci: use renovate token if available (#565)
This commit is contained in:
parent
b50b71e29e
commit
060979e4d4
1 changed files with 12 additions and 1 deletions
13
.github/workflows/build.yml
vendored
13
.github/workflows/build.yml
vendored
|
|
@ -53,13 +53,24 @@ jobs:
|
|||
run: npm ci
|
||||
- name: 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
|
||||
uses: ./
|
||||
env:
|
||||
LOG_LEVEL: debug
|
||||
with:
|
||||
configurationFile: ${{ matrix.configurationFile }}
|
||||
token: ${{ secrets.GITHUB_TOKEN }}
|
||||
|
||||
build:
|
||||
needs: [lint, commitlint, e2e]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue