From 1e05fa404664a56ca33b425ee8d1d4e2571373d4 Mon Sep 17 00:00:00 2001 From: Moti Asayag Date: Sun, 31 Mar 2024 00:59:04 +0300 Subject: [PATCH] Update main.yml Add workflow-id to the commit message and PR title and move the URL from the title to the body of the commit and PR message. --- .github/workflows/main.yml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 07a0efb9..65328cd4 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -130,12 +130,13 @@ jobs: else PR_OR_COMMIT_URL="https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}" fi - git commit -m "Automated PR from $PR_OR_COMMIT_URL" + git commit -m "(${{ inputs.workflow_id }}) Automated PR" + echo "Automated PR from $PR_OR_COMMIT_URL" | git commit --amend --file=- git remote set-url origin https://${{ env.GH_TOKEN }}@github.com/$WF_CONFIG_REPO git push origin HEAD - gh pr create -f --title "Automatic manifests generation from $PR_OR_COMMIT_URL" \ + gh pr create -f --title "(${{ inputs.workflow_id }}) Automatic manifests generation" \ --body " Updating generated manifests for ${{ inputs.workflow_id }} workflow - + This PR was created automatically as a result of merging $PR_OR_COMMIT_URL "