build(deps): bump github.com/prometheus/common from 0.58.0 to 0.59.0 #4598
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
# We "trust" dependabot updates once they pass tests. | |
# (this still requires all other checks to pass!) | |
# This doesn't work on forked repos per the discussion in | |
# https://github.com/pascalgn/automerge-action/issues/46 so don't attempt to | |
# add people other than dependabot to the if field below. | |
name: dependabot-auto-merge | |
on: | |
pull_request_target: | |
types: | |
# Dependabot will label the PR | |
- labeled | |
# Dependabot has rebased the PR | |
- synchronize | |
jobs: | |
enable-automerge: | |
if: github.event.pull_request.user.login == 'dependabot[bot]' && contains(github.event.pull_request.labels.*.name, 'dependencies') | |
runs-on: ubuntu-latest | |
# https://github.com/orgs/community/discussions/24686 | |
permissions: | |
contents: write | |
pull-requests: write | |
steps: | |
- run: | | |
gh api graphql -f pullRequestId="${{ github.event.pull_request.node_id }}" -f query=' | |
mutation EnablePullRequestAutoMerge($pullRequestId: ID!) { | |
enablePullRequestAutoMerge(input: {pullRequestId: $pullRequestId}) { | |
clientMutationId | |
} | |
} | |
' | |
env: | |
GH_TOKEN: ${{ github.token }} | |
wait-on-checks: | |
needs: enable-automerge | |
runs-on: ubuntu-latest | |
permissions: | |
# wait-on-check requires only checks read | |
checks: read | |
steps: | |
- uses: lewagon/[email protected] | |
with: | |
ref: ${{ github.event.pull_request.head.sha }} | |
check-regexp: "test.*" | |
repo-token: ${{ secrets.GITHUB_TOKEN }} | |
wait-interval: 60 | |
approve: | |
needs: wait-on-checks | |
runs-on: ubuntu-latest | |
permissions: | |
# https://github.com/hmarr/auto-approve-action/issues/183 says | |
# auto-approve-action requires write on pull-requests | |
pull-requests: write | |
steps: | |
- uses: hmarr/auto-approve-action@f0939ea97e9205ef24d872e76833fa908a770363 | |
with: | |
github-token: "${{ secrets.GITHUB_TOKEN }}" |