File tree Expand file tree Collapse file tree 3 files changed +87
-0
lines changed
Expand file tree Collapse file tree 3 files changed +87
-0
lines changed Original file line number Diff line number Diff line change 1+ name : Renovate Pull Request Approval
2+
3+ on :
4+ pull_request :
5+ branches : [main]
6+
7+ # Increase the access for the GITHUB_TOKEN
8+ permissions :
9+ # This Allows the GITHUB_TOKEN to approve pull requests
10+ pull-requests : write
11+ # This Allows the GITHUB_TOKEN to auto merge pull requests
12+ contents : write
13+
14+ env :
15+ PR_URL : ${{github.event.pull_request.html_url}}
16+ # By default, GitHub Actions workflows triggered by renovate get a GITHUB_TOKEN with read-only permissions.
17+ GITHUB_TOKEN : ${{secrets.GITHUB_TOKEN}}
18+
19+ jobs :
20+ approve_renovate_pull_requests :
21+ runs-on : ubuntu-latest
22+ name : Approve renovate pull request
23+ if : ${{ (github.actor == 'Octobob') && (contains(github.head_ref, 'renovate')) }}
24+ steps :
25+ - name : Approve a renovate created PR
26+ run : gh pr review --approve "$PR_URL"
Original file line number Diff line number Diff line change 1+ name : Renovate
2+ on :
3+ schedule :
4+ - cron : " 0 0 * * *"
5+
6+ workflow_dispatch :
7+ inputs :
8+ dryRun :
9+ type : boolean
10+ required : false
11+ default : false
12+ description : Dry run (don't create PRs)
13+
14+ jobs :
15+ renovate :
16+ runs-on : ubuntu-latest
17+ steps :
18+ - name : Checkout
19+ uses : actions/checkout@v4
20+
21+ - name : Self-hosted Renovate
22+ uses : renovatebot/github-action@v43.0.18
23+ with :
24+ configurationFile : renovate-config.js
25+ token : ${{ secrets.RENOVATE_GITHUB_TOKEN }}
26+ env :
27+ LOG_LEVEL : debug
28+ RENOVATE_DRY_RUN : ${{ inputs.dryRun && 'full' || null }}
Original file line number Diff line number Diff line change 1+ // eslint-disable-next-line import/no-commonjs
2+ module . exports = {
3+ extends : [
4+ 'config:base' ,
5+ ':disableMajorUpdates' ,
6+ ':ignoreModulesAndTests' ,
7+ ':pinVersions' ,
8+ ':rebaseStalePrs' ,
9+ ':automergeDigest' ,
10+ ':automergePatch' ,
11+ ':automergePr' ,
12+ ':automergeRequireAllStatusChecks' ,
13+ ':automergeLinters' ,
14+ ':automergeTesters' ,
15+ ':automergeTypes' ,
16+ 'packages:eslint' ,
17+ 'workarounds:typesNodeVersioning' ,
18+ 'github>whitesource/merge-confidence:beta'
19+ ] ,
20+ branchPrefix : 'renovate/' ,
21+ platform : 'github' ,
22+ repositories : [ 'OctopusDeploy/deprovision-ephemeral-environment' ] ,
23+ packageRules : [ ] ,
24+ timezone : 'Australia/Brisbane' ,
25+ onboarding : false ,
26+ requireConfig : false ,
27+ allowedPostUpgradeCommands : [ '.*' ] ,
28+ postUpgradeTasks : {
29+ commands : [ 'npm install && npm run build' ] ,
30+ fileFilters : [ '**/index.js' ] ,
31+ executionMode : 'update'
32+ }
33+ }
You can’t perform that action at this time.
0 commit comments