diff --git a/.github/workflows/automerge-dependabot.yml b/.github/workflows/automerge-dependabot.yml deleted file mode 100644 index 7d6d9628ed8..00000000000 --- a/.github/workflows/automerge-dependabot.yml +++ /dev/null @@ -1,63 +0,0 @@ ---- -####################################### -####################################### -## Dependabot automerge dependencies ## -####################################### -####################################### - -# -# Documentation: -# https://medium.com/@toufik.airane/automerge-github-dependabot-alerts-with-github-actions-7cd6f5763750 -# - -###################### -# name of the action # -###################### -name: automerge on pull request - -############### -# When to run # -############### -on: [pull_request] - -################# -# Start the job # -################# -jobs: - automerge: - name: automerge dependabot - runs-on: ubuntu-latest - if: github.actor == 'dependabot[bot]' && github.repository == 'oxsecurity/megalinter' - steps: - - name: Wait for CI/CT/CD to succeed - uses: fountainhead/action-wait-for-check@v1.1.0 - id: wait-for-build - with: - token: ${{ secrets.GITHUB_TOKEN }} - checkName: Tests + Deploy Docker Image - DEV - ref: ${{ github.event.pull_request.head.sha || github.sha }} - - - name: Wait for CI/CT/CD to succeed pt2 - uses: fountainhead/action-wait-for-check@v1.1.0 - id: wait-for-ci - with: - token: ${{ secrets.GITHUB_TOKEN }} - checkName: MegaLinter - ref: ${{ github.event.pull_request.head.sha || github.sha }} - - - name: merge - if: steps.wait-for-build.outputs.conclusion == 'success' || steps.wait-for-build.outputs.conclusion == 'skipped' && steps.wait-for-ci.outputs.conclusion == 'success' - uses: actions/github-script@v7 - with: - script: | - github.pulls.createReview({ - owner: context.payload.repository.owner.login, - repo: context.payload.repository.name, - pull_number: context.payload.pull_request.number, - event: 'APPROVE' - }) - github.pulls.merge({ - owner: context.payload.repository.owner.login, - repo: context.payload.repository.name, - pull_number: context.payload.pull_request.number - }) diff --git a/.github/workflows/automerge.yml b/.github/workflows/automerge.yml deleted file mode 100644 index 4a24c4530e2..00000000000 --- a/.github/workflows/automerge.yml +++ /dev/null @@ -1,37 +0,0 @@ -name: automerge -on: - pull_request: - types: - - labeled - - unlabeled - - synchronize - - opened - - edited - - ready_for_review - - reopened - - unlocked - pull_request_review: - types: - - submitted - check_suite: - types: - - completed - status: {} -jobs: - automerge: - runs-on: ubuntu-latest - permissions: - # Give the default GITHUB_TOKEN write permission to commit and push, comment issues & post new PR - # Remove the ones you do not need - contents: write - issues: write - pull-requests: write - if: github.repository == 'oxsecurity/megalinter' - steps: - - name: automerge - env: - GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}" - MERGE_COMMIT_MESSAGE: "pull-request-description" - MERGE_FORKS: "false" - if: env.GITHUB_TOKEN != null - uses: "pascalgn/automerge-action@v0.16.2"