mirror of
https://github.com/renovatebot/github-action.git
synced 2025-12-17 09:22: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
|
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]
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue