allow calling [github] without auth #5170
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Auto close | |
on: | |
pull_request_target: | |
types: [opened] | |
permissions: | |
pull-requests: write | |
jobs: | |
auto-close: | |
runs-on: ubuntu-latest | |
if: github.actor == 'dependabot[bot]' | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Install action dependencies | |
run: cd .github/actions/close-bot && npm ci | |
- uses: ./.github/actions/close-bot | |
with: | |
github-token: '${{ secrets.GITHUB_TOKEN }}' |