Skip to content
This repository has been archived by the owner on Sep 24, 2024. It is now read-only.

Commit

Permalink
Merge branch 'main' into dependabot_updates
Browse files Browse the repository at this point in the history
  • Loading branch information
kanwalpreetd authored Aug 29, 2024
2 parents 230d8ff + b79c524 commit d1f6f8d
Showing 1 changed file with 7 additions and 11 deletions.
18 changes: 7 additions & 11 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name: brew pr-pull

on:
pull_request:
pull_request_target:
types:
- labeled

Expand Down Expand Up @@ -29,14 +29,10 @@ jobs:
uses: Homebrew/actions/git-try-push@c62170a03ff2bcb9ab097fd7d6acbc905618e42a
with:
token: ${{ github.token }}
branch: ${{ github.ref }}
branch: main

- name: Merge pr
uses: actions/github-script@v7
with:
script: |
await github.rest.pulls.merge({
owner: context.repo.owner,
repo: context.repo.repo,
pull_number: context.issue.number,
})
- name: Delete branch
if: github.event.pull_request.head.repo.fork == false
env:
BRANCH: ${{ github.event.pull_request.head.ref }}
run: git push --delete origin "$BRANCH"

0 comments on commit d1f6f8d

Please sign in to comment.