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

Commit

Permalink
Add a new condition in workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
andrekolodochka authored Apr 26, 2021
1 parent 2d8c7d5 commit 6caf09b
Showing 1 changed file with 4 additions and 2 deletions.
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 feel free to re-open it."

0 comments on commit 6caf09b

Please sign in to comment.