![]() Server : Apache System : Linux server2.corals.io 4.18.0-348.2.1.el8_5.x86_64 #1 SMP Mon Nov 15 09:17:08 EST 2021 x86_64 User : corals ( 1002) PHP Version : 7.4.33 Disable Function : exec,passthru,shell_exec,system Directory : /home/corals/rentpix.corals.io/vendor/swagger-api/swagger-ui/.github/workflows/ |
name: Merge me! on: pull_request_target: branches: [ master, next ] permissions: contents: read jobs: merge-me: name: Merge me! if: github.actor == 'dependabot[bot]' runs-on: ubuntu-latest steps: # This first step will fail if there's no metadata and so the approval # will not occur. - name: Dependabot metadata id: dependabot-metadata uses: dependabot/[email protected] with: github-token: "${{ secrets.GITHUB_TOKEN }}" # Here the PR gets approved. - name: Approve a PR if: ${{ steps.dependabot-metadata.outputs.update-type != 'version-update:semver-major' }} run: gh pr review --approve "$PR_URL" env: PR_URL: ${{ github.event.pull_request.html_url }} GITHUB_TOKEN: ${{ secrets.SWAGGER_BOT_GITHUB_TOKEN }} # Finally, tell dependabot to merge the PR if all checks are successful - name: Instruct dependabot to squash & merge if: ${{ steps.dependabot-metadata.outputs.update-type != 'version-update:semver-major' }} uses: mshick/add-pr-comment@v2 with: repo-token: ${{ secrets.SWAGGER_BOT_GITHUB_TOKEN }} allow-repeats: true message: | @dependabot squash and merge env: GITHUB_TOKEN: ${{ secrets.SWAGGER_BOT_GITHUB_TOKEN }}