Skip to content

Commit

Permalink
Update main.yml
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
masayag committed Mar 30, 2024
1 parent 6148f7a commit 1e05fa4
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
"

0 comments on commit 1e05fa4

Please sign in to comment.