diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 90774ed..8e5db87 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -19,17 +19,17 @@ jobs: env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - - name: Create PR for Documentation + - name: Create a PR for Documentation id: push_image_info env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + GITHUB_TOKEN: ${{ secrets.PAT }} run: | set -e echo "Start." # Configure git and Push updates - git config --global user.email github-actions[bot]@users.noreply.github.com - git config --global user.name github-actions[bot] + git config --global user.email github-actions@github.com + git config --global user.name github-actions git config pull.rebase false branch=automated-documentation-update-$GITHUB_RUN_ID @@ -43,5 +43,12 @@ jobs: # Push if [ "$NO_UPDATES" != "true" ] ; then git push origin "$branch" - gh pr create --title "$message" --body "$message" - fi \ No newline at end of file + gh api \ + --method POST \ + -H "Accept: application/vnd.github+json" \ + /repos/${GITHUB_REPOSITORY}/pulls \ + -f title="$message" \ + -f body="$message" \ + -f head="$branch" \ + -f base='main' + fi