Skip to content

Commit

Permalink
using gh cli instead of git cli
Browse files Browse the repository at this point in the history
  • Loading branch information
lucasmenendez committed Nov 17, 2023
1 parent 2d64818 commit 6bef32c
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions .github/workflows/verify-contribution.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,6 @@ jobs:
- name: Merge PR branch
if: success() && contains(github.event.pull_request.labels.*.name, 'automerge')
run: |
git config --global user.name "${{ github.actor }}"
git config --global user.email "${{ github.actor }}@users.noreply.github.com"
git fetch origin ${{ github.base_ref }}
git checkout ${{ github.base_ref }}
git merge --no-ff ${{ github.head_ref }} -m "Automatically merging new contribution"
git push origin ${{ github.base_ref }}
gh pr merge --auto ${{ github.event.number }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit 6bef32c

Please sign in to comment.