BREAKING CHANGE: update to eye v11.0.1\n\nBREAKING CHANGE: This update includes breaking changes to eye. #2642
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: Enable automerge on dependabot PRs | |
on: | |
pull_request_target: | |
jobs: | |
automerge: | |
name: Enable automerge on dependabot PRs | |
runs-on: ubuntu-latest | |
permissions: | |
contents: write | |
pull-requests: write | |
repository-projects: write | |
if: github.actor == 'dependabot[bot]' && !contains(github.head_ref, 'dependabot/npm_and_yarn/swipl-wasm-') | |
steps: | |
- uses: actions/checkout@v4 | |
- run: gh pr merge ${{ github.event.pull_request.html_url }} --auto --squash | |
env: | |
GH_TOKEN: ${{ github.token }} | |
automerge_swipl: | |
name: Enable automerge on swipl-wasm dependabot PRs | |
runs-on: ubuntu-latest | |
permissions: | |
contents: write | |
pull-requests: write | |
repository-projects: write | |
if: github.actor == 'dependabot[bot]' && contains(github.head_ref, 'dependabot/npm_and_yarn/swipl-wasm-') | |
steps: | |
- uses: actions/checkout@v4 | |
- run: | | |
version=$(echo "$BRANCH_NAME" | grep -oP '(?<=swipl-wasm-)[^/]+') | |
major=$(echo $version | cut -d. -f1) | |
minor=$(echo $version | cut -d. -f2) | |
patch=$(echo $version | cut -d. -f3) | |
if [ $major -ne 0 ]; then | |
commit_message="BREAKING CHANGE: update swipl-wasm to $version\n\nBREAKING CHANGE: This update includes breaking changes." | |
elif [ $minor -ne 0 ]; then | |
commit_message="feat: update swipl-wasm to $version" | |
else | |
commit_message="fix: update swipl-wasm to $version" | |
fi | |
gh pr merge ${{ github.event.pull_request.html_url }} --auto --squash --subject "$commit_message" | |
env: | |
GH_TOKEN: ${{ github.token }} | |
BRANCH_NAME: ${{ github.head_ref }} |