Skip to content

Commit

Permalink
ci: merge PRs from FloxBot on success (#373)
Browse files Browse the repository at this point in the history
  • Loading branch information
tomberek authored Feb 11, 2025
1 parent 5b1724e commit 3862b7b
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -265,13 +265,13 @@ jobs:
name: "Auto Merge PRs"
runs-on: "ubuntu-latest"

# if: ${{ github.actor == 'floxbot' && github.event_name == 'pull_request'}} # Detect that the PR author is floxbot
if: ${{ success() && github.actor == 'floxbot' && github.event_name == 'pull_request'}} # Detect that the PR author is floxbot
steps:
- name: "Enable auto-merge for Dependabot PRs"
run: |
echo Header
echo gh pr merge --auto --merge "$PR_URL"
echo Footer
echo "${{ github.actor }}"
echo "${{ github.event_name }}"
gh pr merge --auto --merge "$PR_URL"
env:
PR_URL: ${{github.event.pull_request.html_url}}
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
Expand Down

0 comments on commit 3862b7b

Please sign in to comment.