Skip to content

Commit

Permalink
Fix: Workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
OskarStark authored Mar 11, 2021
1 parent 79feb1f commit 4c8a444
Showing 1 changed file with 0 additions and 36 deletions.
36 changes: 0 additions & 36 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -84,39 +84,3 @@ jobs:

- name: "Run tests"
run: vendor/bin/phpunit

auto-merge:
name: "Auto-Merge"

runs-on: "ubuntu-latest"

needs:
- "phpstan"
- "php-cs-fixer"
- "tests"

if: >
github.event_name == 'pull_request' &&
github.event.pull_request.draft == false && (
github.event.action == 'opened' ||
github.event.action == 'reopened' ||
github.event.action == 'synchronize'
) && (
github.actor == 'dependabot[bot]'
)
steps:
- name: "Merge pull request"
uses: "actions/github-script@v2"
with:
github-token: "${{ secrets.GITHUB_TOKEN }}"
script: |
const pullRequest = context.payload.pull_request
const repository = context.repo
await github.pulls.merge({
merge_method: "merge",
owner: repository.owner,
pull_number: pullRequest.number,
repo: repository.repo,
})

0 comments on commit 4c8a444

Please # to comment.