Skip to content

Commit

Permalink
fix(renovate): fix dry-run mode for manual trigger (#252)
Browse files Browse the repository at this point in the history
Even though we have `type: boolean` on the input, in [run logs], we can
see that we get a string when using it:

```
....Evaluating String:
....=> 'inputs'
..=> Object
..Evaluating String:
..=> 'dry-run'
=> 'false'
```

So we'll need to compare with `'true`` as a string. Sad face.

[run logs]: https://github.com/grafana/shared-workflows/actions/runs/10940222859/job/30372257412
  • Loading branch information
iainlane authored Sep 19, 2024
1 parent a678ac5 commit c1dacd0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/renovate.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ jobs:
# run. By default, Renovate will clone the main/default branch.
RENOVATE_BASE_BRANCHES: ${{ github.event_name == 'pull_request' && github.event.pull_request.head.ref || null }}
# Dry run if the event is pull_request, or workflow_dispatch AND the dry-run input is true
RENOVATE_DRY_RUN: ${{ github.event_name == 'pull_request' || (github.event_name == 'workflow_dispatch' && github.event.inputs.dry-run) && 'full' || null }}
RENOVATE_DRY_RUN: ${{ (github.event_name == 'pull_request' || (github.event_name == 'workflow_dispatch' && github.event.inputs.dry-run == 'true')) && 'full' || null }}
RENOVATE_PLATFORM: github
RENOVATE_REPOSITORIES: ${{ github.repository }}
RENOVATE_USERNAME: GrafanaRenovateBot

0 comments on commit c1dacd0

Please sign in to comment.