Skip to content

Commit

Permalink
fix duplication of docs issues
Browse files Browse the repository at this point in the history
  • Loading branch information
emmyoop committed Sep 29, 2023
1 parent 408a789 commit 664d2ee
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion .github/workflows/docs-issue.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,13 @@ permissions:

jobs:
open_issues:
if: contains( github.event.pull_request.labels.*.name, 'user docs') && github.event.pull_request.merged == true
# we only want to run this when the PR has been merged or the label in the labeled event is `user docs`. Otherwise it runs the
# risk of duplicaton of issues being created due to merge and label both triggering this workflow to run and neither having
# generating the comment before the other runs. This lives here instead of the shared workflow because this is where we
# decide if it should run or not.
if: |
(contains( github.event.pull_request.labels.*.name, 'user docs') && github.event.pull_request.merged == true) ||
(github.event.label.name == 'user docs' && github.event.action == 'labeled' )
uses: dbt-labs/actions/.github/workflows/open-issue-in-repo.yml@main
with:
issue_repository: "dbt-labs/docs.getdbt.com"
Expand Down

0 comments on commit 664d2ee

Please sign in to comment.