Skip to content

Commit 557a564

Browse files
authored
ci: fix PR title (#605)
1 parent 53a6471 commit 557a564

File tree

1 file changed

+14
-13
lines changed

1 file changed

+14
-13
lines changed

.github/workflows/update-templates.yml

Lines changed: 14 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ jobs:
3535
id: branch-name
3636
run: |
3737
echo "BRANCH_NAME=$(echo '${{ env.RAW_BRANCH_NAME }}' | sed 's/,/_/g')" >> $GITHUB_OUTPUT
38+
echo "BASE_IMAGE_FORMATTED=$(echo '${{ env.BASE_IMAGE_RAW }}' | sed 's/,/, /g')" >> $GITHUB_OUTPUT
3839
3940
- name: Checkout repository
4041
uses: actions/checkout@v6
@@ -100,15 +101,15 @@ jobs:
100101
if [ "$PR_EXISTS" -eq "0" ]; then
101102
echo "Creating new PR"
102103
gh pr create \
103-
--title "chore: Update templates for base image: ${{ steps.branch-name.outputs.BRANCH_NAME }}" \
104-
--body "Automated update of templates for base image \`${{ env.BASE_IMAGE_RAW }}\`
104+
--title "chore: Update templates for base image: ${{ steps.branch-name.outputs.BASE_IMAGE_FORMATTED }}" \
105+
--body "Automated update of templates for base image \`${{ steps.branch-name.outputs.BASE_IMAGE_FORMATTED }}\`
105106
106-
**Parameters:**
107-
- Base Image: \`${{ env.BASE_IMAGE_RAW }}\`
108-
- Runtime Version: \`${{ env.DEFAULT_RUNTIME_VERSION }}\`
109-
- Module Version: \`${{ env.MODULE_VERSION || 'N/A' }}\`
107+
**Parameters:**
108+
- Base Image: \`${{ steps.branch-name.outputs.BASE_IMAGE_FORMATTED }}\`
109+
- Runtime Version: \`${{ env.DEFAULT_RUNTIME_VERSION }}\`
110+
- Module Version: \`${{ env.MODULE_VERSION || 'N/A' }}\`
110111
111-
This PR was automatically generated by the [Update Templates](https://github.com/apify/actor-templates/actions/workflows/update-templates.yml) workflow." \
112+
> Generated by [Update Templates](https://github.com/apify/actor-templates/actions/workflows/update-templates.yml) workflow." \
112113
--base master \
113114
--head "${{ steps.branch-name.outputs.BRANCH_NAME }}" \
114115
--reviewer B4nan \
@@ -119,13 +120,13 @@ jobs:
119120
# gh pr edit supports a branch name or a PR number or a URL
120121
121122
gh pr edit "${{ steps.branch-name.outputs.BRANCH_NAME }}" \
122-
--body "Automated update of templates for base image \`${{ env.BASE_IMAGE_RAW }}\`
123+
--body "Automated update of templates for base image \`${{ steps.branch-name.outputs.BASE_IMAGE_FORMATTED }}\`
123124
124-
**Parameters:**
125-
- Base Image: \`${{ env.BASE_IMAGE_RAW }}\`
126-
- Runtime Version: \`${{ env.DEFAULT_RUNTIME_VERSION }}\`
127-
- Module Version: \`${{ env.MODULE_VERSION || 'N/A' }}\`
125+
**Parameters:**
126+
- Base Image: \`${{ steps.branch-name.outputs.BASE_IMAGE_FORMATTED }}\`
127+
- Runtime Version: \`${{ env.DEFAULT_RUNTIME_VERSION }}\`
128+
- Module Version: \`${{ env.MODULE_VERSION || 'N/A' }}\`
128129
129-
This PR was automatically generated by the [Update Templates](https://github.com/apify/actor-templates/actions/workflows/update-templates.yml) workflow."
130+
> Generated by [Update Templates](https://github.com/apify/actor-templates/actions/workflows/update-templates.yml) workflow."
130131
fi
131132

0 commit comments

Comments
 (0)