Skip to content

Commit 8375774

Browse files
authored
refine the version update and add a label for the pull request (#3930)
1 parent 9d07fad commit 8375774

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

.github/workflows/create-release.yml

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -98,17 +98,18 @@ jobs:
9898
# Update the version part of the image tags in dev/main.tf
9999
- name: Update image versions in main.tf
100100
run: |
101-
sed -i -E 's|(busola_backend_image\s*=\s*".*:)[^"]+|\1${{ github.event.inputs.name }}|' dev/main.tf
102-
sed -i -E 's|(busola_web_image\s*=\s*".*:)[^"]+|\1${{ github.event.inputs.name }}|' dev/main.tf
101+
sed -i -E 's|(busola_backend_image\s*=\s*".*:)[^"]+|\1v${{ github.event.inputs.name }}|' dev/main.tf
102+
sed -i -E 's|(busola_web_image\s*=\s*".*:)[^"]+|\1v${{ github.event.inputs.name }}|' dev/main.tf
103103
104104
# Open a pull request to the dev branch with the updated image versions
105105
- name: Create Pull Request
106106
uses: peter-evans/create-pull-request@v7
107107
with:
108108
token: ${{ secrets.BUSOLA_DEPLOY_PAT }}
109-
commit-message: "chore: promote busola images to v${{ github.event.inputs.name }}"
110-
branch: promote-busola-images-v${{ github.event.inputs.name }}
111-
title: "chore: promote busola images to v${{ github.event.inputs.name }}"
109+
commit-message: "chore: promote busola images to ${{ github.event.inputs.name }}"
110+
branch: promote-busola-images-${{ github.event.inputs.name }}
111+
title: "chore: promote busola images to ${{ github.event.inputs.name }}"
112+
labels: promote-to-dev-pending
112113
body: |
113-
This PR updates the Busola image versions in dev/main.tf to v${{ github.event.inputs.name }}.
114+
This PR updates the Busola image versions in dev/main.tf to ${{ github.event.inputs.name }}.
114115
base: dev

0 commit comments

Comments
 (0)