build(deps): bump golangci/golangci-lint-action from 4 to 6 #13
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: Auto Merge PR | |
on: | |
pull_request: | |
types: [labeled, unlabeled] | |
pull_request_review: | |
types: [submitted] | |
workflow_call: | |
permissions: | |
contents: write | |
pull-requests: write | |
jobs: | |
auto-merge: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Is PR ready? | |
id: is-ready | |
if: > | |
( | |
( | |
!github.event.pull_request.draft && | |
github.event.pull_request.mergeable | |
) || | |
contains(github.event.pull_request.labels.*.name, 'ready') | |
) | |
run: true | |
- name: Is Dependabot? | |
id: is-dependabot | |
if: github.event.pull_request.user.login == 'dependabot[bot]' | |
run: true | |
- name: Is patch update? | |
id: patch-update | |
if: > | |
steps.is-dependabot.outcome == 'success' && contains( | |
github.event.head_commit.message, 'version-update:semver-patch' | |
) | |
run: true | |
- name: Auto merge PR | |
if: > | |
( | |
steps.is-ready.outcome == 'success' || | |
steps.is-dependabot.outcome == 'success' | |
) | |
uses: pascalgn/[email protected] | |
env: | |
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}" | |
MERGE_LABELS: "" | |
MERGE_METHOD: "squash" | |
MERGE_COMMIT_MESSAGE: "automatic" | |
MERGE_FILTER_AUTHOR: "dependabot[bot]" | |
MERGE_FORKS: "true" | |
MERGE_RETRIES: "6" | |
MERGE_RETRY_SLEEP: "10000" | |
MERGE_REQUIRED_APPROVALS: "${{ | |
( | |
steps.is-ready.outcome == 'success' || | |
steps.patch-update.outcome == 'success' | |
) && | |
0 || 1 | |
}}" | |
UPDATE_LABELS: "" | |
UPDATE_METHOD: "rebase" |