From 19912c5faef703f603d241f713cd9c7420aaf5a3 Mon Sep 17 00:00:00 2001 From: McKnight-42 Date: Tue, 18 Jun 2024 13:34:00 -0500 Subject: [PATCH] update workflow based onf feedback --- .github/workflows/docs-issue.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/docs-issue.yml b/.github/workflows/docs-issue.yml index 80d0e6dc..be1dc095 100644 --- a/.github/workflows/docs-issue.yml +++ b/.github/workflows/docs-issue.yml @@ -30,12 +30,12 @@ jobs: # 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: | - (github.event.issue.state == 'closed' && - github.event.issue.state_reason == 'completed' && - contains( github.event.issue.labels.*.name, 'user docs')) + (github.event.issue.state == 'closed' && github.event.issue.state_reason == 'completed') && ( + (github.event.action == 'closed' && contains(github.event.issue.labels.*.name, 'user docs'))) uses: dbt-labs/actions/.github/workflows/open-issue-in-repo.yml@main with: issue_repository: "dbt-labs/docs.getdbt.com" issue_title: "Docs Changes Needed from ${{ github.event.repository.name }} Issue #${{ github.event.issue.number }}" issue_body: "At a minimum, update body to include a link to the page on docs.getdbt.com requiring updates and what part(s) of the page you would like to see updated." - secrets: inherit \ No newline at end of file + secrets: inherit + \ No newline at end of file