This repository has been archived by the owner on Sep 27, 2023. It is now read-only.
PSP-959: Pin to trusted action versions. #975
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: Your Fork | |
on: | |
pull_request_target: | |
types: [opened] | |
jobs: | |
close: | |
if: github.repository == 'hashicorp/learn-terraform-github-actions' | |
runs-on: ubuntu-latest | |
steps: | |
- uses: superbrothers/close-pull-request@v3 # TSCCR: no entry for action: "superbrothers/close-pull-request" | |
with: | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
# Optional. Post a issue comment just before closing a pull request. | |
comment: "Hi! If you are following the Terraform GitHub Actions tutorial, please open the PR against [your personal fork](https://learn.hashicorp.com/tutorials/terraform/github-actions?in=terraform/automation#set-up-a-github-repository) of this repository. We will automatically close this PR, but if you intended to edit the example itself please feel free to re-open it." |