From fd82d3670d0ab6bd7ba13116360a0775f36dedb8 Mon Sep 17 00:00:00 2001 From: Joseph Barnes Date: Mon, 15 Jul 2024 07:58:14 -0500 Subject: [PATCH] Disable PR creation in Generate Template action. --- .github/workflows/generate-templates.yml | 21 +++++++++++---------- 1 file changed, 11 insertions(+), 10 deletions(-) diff --git a/.github/workflows/generate-templates.yml b/.github/workflows/generate-templates.yml index 878a90f3b..cc79a04e9 100644 --- a/.github/workflows/generate-templates.yml +++ b/.github/workflows/generate-templates.yml @@ -71,17 +71,18 @@ jobs: --jq 'length') if ((prs > 0)); then - echo "skippr=true" >> "$GITHUB_OUTPUT" + echo "skippr=true" >> "$GITHUB_OUTPUT" fi else - echo "skippr=true" >> "$GITHUB_OUTPUT" + echo "skippr=true" >> "$GITHUB_OUTPUT" fi - - name: Create pull request - if: '!steps.generate.outputs.skippr' - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - run: | - # Create a pull request - echo "Creating a pull request..." - gh pr --repo ${{ github.repository }} create --title "[GitHub Action - Generate Templates] Generate templates for alerts" --body "This PR was automatically generated by the workflow." --base main --head github-action-generate-templates + # Diasble PR creation for now since it is not supported in the Azure repo + # - name: Create pull request + # if: '!steps.generate.outputs.skippr' + # env: + # GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + # run: | + # # Create a pull request + # echo "Creating a pull request..." + # gh pr --repo ${{ github.repository }} create --title "[GitHub Action - Generate Templates] Generate templates for alerts" --body "This PR was automatically generated by the workflow." --base main --head github-action-generate-templates