diff --git a/.github/workflows/invalid.yml b/.github/workflows/invalid.yml index 37dee2e..e257704 100644 --- a/.github/workflows/invalid.yml +++ b/.github/workflows/invalid.yml @@ -13,9 +13,11 @@ jobs: runs-on: ubuntu-latest if: github.event.label.name == 'invalid' steps: - - name: Close Issue - uses: peter-evans/close-issue@v3 + - name: Checkout + uses: actions/checkout@v3 with: - issue-number: ${{ github.event.issue.number }} - comment: | - This issue has been labeled as `invalid`. This label is added to issues that are incomplete and do not provide enough information for us to help you. Please reach out if you have any questions or concerns. + fetch-depth: 0 + - name: Close Issue + run: gh issue close ${{ github.event.issue.number }} --comment "This issue has been labeled as invalid. This label is added to issues that are incomplete and do not provide enough information for us to help you. Please reach out if you have any questions or concerns." + env: + GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}