Skip to content

Commit

Permalink
chore: authenticate renovate with github app
Browse files Browse the repository at this point in the history
  • Loading branch information
huxuan committed Feb 23, 2024
1 parent df3f6e0 commit 49176ef
Showing 1 changed file with 12 additions and 3 deletions.
15 changes: 12 additions & 3 deletions .github/workflows/renovate.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,21 @@ jobs:
RENOVATE_REPOSITORY_CACHE: enabled
RENOVATE_TOKEN: ${{ secrets.RENOVATE_TOKEN }}
image: ghcr.io/renovatebot/renovate:37.202.2
options: '--user root'
runs-on: ubuntu-latest
steps:
- run: env | sort
- run: |
if [ -z "${{ secrets.RENOVATE_TOKEN }}" ]; then
echo "RENOVATE_TOKEN not set, skipping ..."
- id: generate-token
name: Generate a token
uses: actions/create-github-app-token@v1
with:
app-id: ${{ vars.BOT_APP_ID }}
private-key: ${{ secrets.BOT_PRIVATE_KEY }}
- env:
RENOVATE_TOKEN: ${{ secrets.RENOVATE_TOKEN || steps.generate-token.outputs.token }}
run: |
if [ -z "$RENOVATE_TOKEN" ]; then
echo "RENOVATE_TOKEN is not properly configured, skipping ..."
else
renovate $RENOVATE_EXTRA_FLAG
fi
Expand Down

0 comments on commit 49176ef

Please sign in to comment.