Skip to content

Commit

Permalink
update template
Browse files Browse the repository at this point in the history
  • Loading branch information
huxuan committed Mar 15, 2024
1 parent d681e22 commit 284fad5
Showing 1 changed file with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,26 +12,26 @@ jobs:
[%- else -%]
RENOVATE_ENABLED_MANAGERS: '["pep621", "github-actions", "regex"]'
[%- endif %]
RENOVATE_GIT_AUTHOR: Renovate GitHub Bot <github@renovatebot.com>
RENOVATE_OPTIMIZE_FOR_DISABLED: 'true'
RENOVATE_OPTIMIZE_FOR_DISABLED: "true"
RENOVATE_PLATFORM: github
RENOVATE_REPOSITORIES: '["{{ '${{ github.repository }}' }}"]'
RENOVATE_REPOSITORY_CACHE: enabled
RENOVATE_TOKEN: {{ '${{ secrets.RENOVATE_TOKEN }}' }}
image: ghcr.io/renovatebot/renovate:37.246.0-full@sha256:2bbd0a3d5d92be7c56168b369dc4119840a9e341c3c09fdef9d1ac6735042c80
options: '--user root'
options: "--user root"
runs-on: ubuntu-22.04
steps:
- run: env | sort
- id: generate-token
- id: app-token
name: Generate a token with GitHub App if App ID exists
if: vars.BOT_APP_ID
uses: actions/create-github-app-token@f2acddfb5195534d487896a656232b016a682f3c # v1.9.0
with:
app-id: {{ '${{ vars.BOT_APP_ID }}' }}
private-key: {{ '${{ secrets.BOT_PRIVATE_KEY }}' }}
- env:
RENOVATE_TOKEN: {{ '${{ secrets.RENOVATE_TOKEN || steps.generate-token.outputs.token }}' }}
RENOVATE_GIT_AUTHOR: {{ '${{ steps.app-token.outputs.app-slug && format(\'{0}[bot] <{0}[bot]@users.noreply.github.com>\', steps.app-token.outputs.app-slug) || \'Renovate GitHub Bot <[email protected]>\' }}' }}
RENOVATE_TOKEN: {{ '${{ secrets.RENOVATE_TOKEN || steps.app-token.outputs.token }}' }}
run: |
if [ -z "$RENOVATE_TOKEN" ]; then
echo "RENOVATE_TOKEN is not properly configured, skipping ..."
Expand All @@ -41,5 +41,5 @@ jobs:
on:
schedule:
# * is a special character in YAML so you have to quote this string
- cron: '*/15 0-3 * * 1'
- cron: "*/15 0-3 * * 1"
workflow_dispatch: null

0 comments on commit 284fad5

Please sign in to comment.