Skip to content

Commit

Permalink
Update automerge.yml (#1444)
Browse files Browse the repository at this point in the history
  • Loading branch information
jeswr authored Dec 18, 2024
1 parent 87ac765 commit c471e57
Showing 1 changed file with 0 additions and 29 deletions.
29 changes: 0 additions & 29 deletions .github/workflows/automerge.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,32 +17,3 @@ jobs:
- 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 }}

1 comment on commit c471e57

@github-actions
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Performance Alert ⚠️

Possible performance regression was detected for benchmark 'EYE JS Benchmark'.
Benchmark result of this commit is worse than the previous benchmark result exceeding threshold 1.10.

Benchmark suite Current: c471e57 Previous: 9a81eb8 Ratio
Run deep taxonomy benchmark [10] [reasoning only] 4.39 ops/sec (±13.17%) 4.84 ops/sec (±12.83%) 1.10

This comment was automatically generated by workflow using github-action-benchmark.

CC: @jeswr

Please sign in to comment.