Skip to content

Commit

Permalink
Add PR description when creating PR for module version bump (#205)
Browse files Browse the repository at this point in the history
Add PR desc when creating PR for version bump
  • Loading branch information
szwedm authored Mar 2, 2023
1 parent 9d1dfe7 commit 40b1bd3
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions .github/workflows/auto-update.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
name: Auto update chart/resources

env:
ORG: kyma-project
KYMA_ORG: kyma-project
SAP_ORG: SAP
BTP_MANAGER_REPO: btp-manager
SAP_BTP_SERVICE_OPERATOR_REPO: sap-btp-service-operator
GIT_EMAIL: [email protected]
GIT_NAME: kyma-btp-manager-bot
on:
Expand Down Expand Up @@ -97,9 +99,9 @@ jobs:
git add controllers/btpoperator_controller.go
git add config/rbac/role.yaml
git commit -m "$MSG"
git remote set-url origin https://x-access-token:${{ secrets.BOT_TOKEN }}@github.com/$ORG/$BTP_MANAGER_REPO.git
git remote set-url origin https://x-access-token:${{ secrets.BOT_TOKEN }}@github.com/$KYMA_ORG/$BTP_MANAGER_REPO.git
git push --set-upstream origin $BRANCH_NAME -f
pr_link=$(gh pr create -B main --title "$MSG" --body "" | tail -n 1)
pr_link=$(gh pr create -B main --title "$MSG" --body "https://github.com/$SAP_ORG/$SAP_BTP_SERVICE_OPERATOR_REPO/releases/tag/$TAG" | tail -n 1)
echo "received PR link ${pr_link}"
# link the PR from ^^ to gopher project board
Expand Down Expand Up @@ -140,4 +142,4 @@ jobs:
)"
env:
GH_TOKEN: ${{ secrets.BOT_TOKEN }}
GH_TOKEN: ${{ secrets.BOT_TOKEN }}

0 comments on commit 40b1bd3

Please sign in to comment.