Skip to content
This repository has been archived by the owner on Sep 21, 2023. It is now read-only.

Add a new condition in workflow #280

Merged
merged 2 commits into from
Apr 28, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions .github/workflows/your-fork.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,10 @@ jobs:
close:
runs-on: ubuntu-latest
steps:
- uses: superbrothers/close-pull-request@v3
- name: Automatically close pull requests
if: ${{ github.repository.name }} == 'hashicorp/tfc-guide-example'
uses: superbrothers/close-pull-request@v3
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
# Optional. Post a issue comment just before closing a pull request.
comment: "Hi! If you are following the Terraform Cloud Get Started tutorial, please open the PR against [your personal fork](https://learn.hashicorp.com/tutorials/terraform/cloud-workspace-create?in=terraform/cloud-get-started#fork-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."
comment: "Hi! If you are following the Terraform Cloud Get Started tutorial, please open the PR against [your personal fork](https://learn.hashicorp.com/tutorials/terraform/cloud-workspace-create?in=terraform/cloud-get-started#fork-a-github-repository) of this repository. We will automatically close this PR, but if you intended to edit the example itself, please add a comment and we will review it as soon as possible."