Skip to content

Commit

Permalink
Merge pull request Azure#279 from JoeyBarnes/main
Browse files Browse the repository at this point in the history
Disable PR creation in Generate Template action.
  • Loading branch information
judyer28 authored Jul 15, 2024
2 parents 827af40 + fd82d36 commit 0b870b7
Showing 1 changed file with 11 additions and 10 deletions.
21 changes: 11 additions & 10 deletions .github/workflows/generate-templates.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 0b870b7

Please sign in to comment.