-
-
Notifications
You must be signed in to change notification settings - Fork 28
[#1618] Fixed self-hosted Renovate runs without RENOVATE_TOKEN set.
#1646
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -15,7 +15,17 @@ jobs: | |
| with: | ||
| node-version: 22.13.1 | ||
|
|
||
| - name: Check Renovate Token | ||
| id: check-token | ||
| run: | | ||
| if [ -z "${{ secrets.RENOVATE_TOKEN }}" ]; then | ||
| echo "Renovate token is not set. Skipping Renovate step." | ||
| else | ||
| echo "token_exists=true" >> "$GITHUB_OUTPUT" | ||
| fi | ||
|
|
||
AlexSkrypnyk marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| - name: Self-hosted Renovate | ||
| if: steps.check-token.outputs.token_exists == 'true' | ||
| uses: renovatebot/github-action@v42.0.2 | ||
|
Comment on lines
+28
to
29
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🧹 Nitpick (assertive) Consolidate conditional into step-level 🤖 Prompt for AI Agents |
||
| with: | ||
| configurationFile: renovate.json | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -15,7 +15,17 @@ jobs: | |
| with: | ||
| node-version: 22.13.1 | ||
|
|
||
| - name: Check Renovate Token | ||
| id: check-token | ||
| run: | | ||
| if [ -z "${{ secrets.RENOVATE_TOKEN }}" ]; then | ||
| echo "Renovate token is not set. Skipping Renovate step." | ||
| else | ||
| echo "token_exists=true" >> "$GITHUB_OUTPUT" | ||
| fi | ||
|
|
||
|
Comment on lines
+18
to
+26
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🧹 Nitpick (assertive) Extract baseline token-check into a reusable component - - name: Check Renovate Token
- id: check-token
- run: |
- if [ -z "${{ secrets.RENOVATE_TOKEN }}" ]; then
- echo "Renovate token is not set. Skipping Renovate step."
- else
- echo "token_exists=true" >> "$GITHUB_OUTPUT"
- fi
+ - uses: ./.github/actions/check-renovate-token@v1Also applies to: 28-29 🤖 Prompt for AI Agents |
||
| - name: Self-hosted Renovate | ||
| if: steps.check-token.outputs.token_exists == 'true' | ||
| uses: renovatebot/github-action@__VERSION__ | ||
| with: | ||
| configurationFile: renovate.json | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.