Skip to content

Bump org.sonatype.plugins:nexus-staging-maven-plugin from 1.6.13 to 1.7.0 #94

Bump org.sonatype.plugins:nexus-staging-maven-plugin from 1.6.13 to 1.7.0

Bump org.sonatype.plugins:nexus-staging-maven-plugin from 1.6.13 to 1.7.0 #94

name: Dependabot automerge
on: pull_request
permissions:
contents: write
pull-requests: write
jobs:
dependabot-automerge:
runs-on: ubuntu-latest
name: Dependabot automerge
if: github.actor == 'dependabot[bot]'
steps:
- uses: actions/checkout@v4
name: Checkout dependabot-automerge repository
with:
repository: hazelcast/dependabot-automerge
- uses: actions/checkout@v4
name: Checkout workflows directory from ${{ github.repository }} repository
with:
sparse-checkout: .github/workflows
ref: ${{ github.event.repository.default_branch }}
path: repository
- name: Fetch dependabot metadata
id: metadata
uses: dependabot/fetch-metadata@v1
with:
github-token: "${{ secrets.GH_PAT_FOR_AUTOMERGING }}"
- name: Enable automerge for dependabot PRs
run: |
PR_URL="${{ github.event.pull_request.html_url }}"
DEPENDENCY_NAMES="${{ steps.metadata.outputs.dependency-names }}"
UPDATE_TYPE="${{ steps.metadata.outputs.update-type }}"
.github/workflows/dependabot-automerge.sh "$PR_URL" "$DEPENDENCY_NAMES" "$UPDATE_TYPE"
env:
GH_TOKEN: ${{ secrets.GH_PAT_FOR_AUTOMERGING }}
- uses: 8398a7/action-slack@v3
if: failure()
with:
fields: repo,message,author,action,eventName,workflow,job,pullRequest
status: ${{ job.status }}
channel: "#dependabot-notifications"
env:
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_FOR_AUTOMERGING }}