Update 1dev/server Docker tag to v10.5.2 #2
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Renovate AutoMerge | |
on: | |
pull_request: | |
jobs: | |
automerge: | |
if: contains(github.head_ref, 'renovate/') | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Analyze PR for Major Version Bump | |
id: analyze | |
uses: actions/[email protected] | |
with: | |
github-token: ${{ secrets.GITHUB_TOKEN }} | |
script: | | |
const description = context.payload.pull_request.body; | |
const majorRegex = /\b(major)\b/i; // Regular expression to find "major" in the PR description | |
if (majorRegex.test(description)) { | |
console.log("Found a major version bump."); | |
core.setOutput("automerge", "false"); | |
} else { | |
console.log("No major version bump found."); | |
core.setOutput("automerge", "true"); | |
} |