Skip to content

Commit

Permalink
Close pr not needed
Browse files Browse the repository at this point in the history
  • Loading branch information
jameelkaisar committed Oct 8, 2023
1 parent 389b3c5 commit 18d7210
Showing 1 changed file with 2 additions and 9 deletions.
11 changes: 2 additions & 9 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,9 @@ jobs:
pr-pull:
if: contains(github.event.pull_request.labels.*.name, 'pr-pull')
runs-on: ubuntu-22.04
# Contributed the following lines to brew 😁
permissions:
contents: write # IMPORTANT
contents: write
pull-requests: write

steps:
Expand Down Expand Up @@ -37,11 +38,3 @@ jobs:
env:
BRANCH: ${{ github.event.pull_request.head.ref }}
run: git push --delete origin $BRANCH

- name: Close pr
if: github.event.pull_request.head.repo.fork == false
env:
GITHUB_TOKEN: ${{ github.token }}
PULL_REQUEST: ${{ github.event.pull_request.number }}
REPO: ${{ github.repository }}
run: gh pr close $PULL_REQUEST --repo $REPO

0 comments on commit 18d7210

Please sign in to comment.