Skip to content

Commit db5dabd

Browse files
author
Simen Andrè Vikestrand Skogum
committed
feat: enhance release PR workflow with improved steps and clarity
1 parent bd4a63c commit db5dabd

1 file changed

Lines changed: 10 additions & 7 deletions

File tree

.github/workflows/create-release-pr.yml

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,15 @@ jobs:
1515
plan:
1616
runs-on: ubuntu-latest
1717
steps:
18-
- uses: actions/checkout@v4
18+
- name: Checkout dev
19+
uses: actions/checkout@v4
1920
with:
2021
ref: dev
2122
fetch-depth: 0
2223

24+
- name: Ensure jq
25+
run: sudo apt-get update && sudo apt-get install -y jq
26+
2327
- name: Build release plan
2428
id: plan
2529
shell: bash
@@ -42,7 +46,6 @@ jobs:
4246
major="$(basename "$d")"
4347
app="$(basename "$(dirname "$d")")"
4448
image="ghcr.io/${{ github.repository_owner }}/salami-${app}-${major}"
45-
# Tags to publish on main: version and latest
4649
tags="${image}:${ver},${image}:latest"
4750
includes="$(jq -c --arg dir "$d" --arg img "$image" --arg ver "$ver" --arg tags "$tags" \
4851
'. + [{dir:$dir,image:$img,version:$ver,tags:$tags}]' <<<"$includes")"
@@ -55,13 +58,13 @@ jobs:
5558
uses: peter-evans/create-pull-request@v6
5659
with:
5760
token: ${{ github.token }}
58-
commit-message: "chore(release): promote selected images"
61+
base: main
62+
branch: "promote/${{ github.run_id }}"
5963
title: "Promote selected images to main"
64+
commit-message: "chore(release): promote selected images"
65+
labels: promote
6066
body: |
6167
This PR promotes the following images:
6268
```
6369
${{ steps.plan.outputs.plan }}
64-
```
65-
branch: "promote/${{ github.run_id }}"
66-
base: main
67-
labels: promote
70+
```

0 commit comments

Comments
 (0)