diff --git a/.github/workflows/unstable-pr.yml b/.github/workflows/unstable-pr.yml index e52b28a0ad..3b4d271f98 100644 --- a/.github/workflows/unstable-pr.yml +++ b/.github/workflows/unstable-pr.yml @@ -9,12 +9,7 @@ jobs: runs-on: ubuntu-latest if: ${{github.base_ref == 'master'}} - - uses: actions/github-script@v7 + steps: + - uses: superbrothers/close-pull-request@v3 with: - script: | - github.rest.issues.createComment({ - issue_number: ${{ github.event.number }}, - owner: context.repo.owner, - repo: context.repo.repo, - body: "Thank you for contributing to FloofStation repository. Unfortunately, it looks like you submitted your pull request to the master branch, Please move this PR to the Unstable Branch." - }) + comment: "Thank you for contributing to FloofStation repository. Unfortunately, it looks like you submitted your pull request to the master branch, Please move this PR to the Unstable Branch."