From 2eb0ba7689a023ce3b037cd93d4724c475bfcac3 Mon Sep 17 00:00:00 2001 From: robertlincecum Date: Thu, 27 Jun 2024 11:39:40 -0500 Subject: [PATCH] create a pr for quais-docs instead of commit to main --- .github/workflows/cut-release.yml | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/.github/workflows/cut-release.yml b/.github/workflows/cut-release.yml index 35df419f..088fc27e 100644 --- a/.github/workflows/cut-release.yml +++ b/.github/workflows/cut-release.yml @@ -74,8 +74,18 @@ jobs: - uses: stefanzweifel/git-auto-commit-action@v4 with: repository: quais-docs - branch: main + branch: ${{ needs.call-common-workflow.outputs.branch }} + create_branch: true commit_user_name: ci-dominantstrategies commit_user_email: ci@dominantstrategies.io env: HUSKY: 0 + + - name: Create Pull Request + run: | + PR_BRANCH=${{ needs.call-common-workflow.outputs.branch }} + curl -u ci-dominantstrategies:${{ secrets.GH_PAT }} \ + -X POST \ + -H "Accept: application/vnd.github.v3+json" \ + https://api.github.com/repos/dominant-strategies/quais-docs/pulls \ + -d '{"title":"Update Documentation","head":"'"$PR_BRANCH"'","base":"main","body":"This PR updates the documentation."}'