@@ -2,11 +2,6 @@ name: "Machine OS PR"
2
2
3
3
on :
4
4
pull_request_target :
5
- # prevent action from running on older release-process branches
6
- # TODO: remove when we move to new release flow
7
- branches :
8
- - ' v5.5'
9
- - ' main'
10
5
paths :
11
6
- ' version/rawversion/version.go'
12
7
34
29
run : |
35
30
VERSION=$(curl "https://raw.githubusercontent.com/$PODMAN_REPO/$SHA/version/rawversion/version.go" | sed -n 's/^const RawVersion = \"\(.*\)\"$/\1/p')
36
31
# ignore -dev version bumps unless on main
37
- if [[ ${{github.base_ref}} != "main" ]] && [[ $VERSION == *-dev ]] ; then
38
- echo "::warning:: SKIPPING: dev bump not on main"
32
+ if [[ $VERSION == *-dev ]] ; then
33
+ echo "::warning:: SKIPPING: dev bump"
34
+ elif [[ ${{github.base_ref}} == "main" ]] ; then
35
+ echo "::warning:: SKIPPING: main branch"
39
36
elif [[ ${{github.base_ref}} == *-rhel ]] ; then
40
37
echo "::warning:: SKIPPING: rhel branch"
41
38
else
@@ -128,9 +125,11 @@ jobs:
128
125
id : pr
129
126
run : |
130
127
bumpbranch="pr${{github.event.number}}"
128
+ body=$(printf 'Triggered by https://github.com/%s/pull/%s\n\n```release-note\nRelease v%s\n```\n' \
129
+ "$PODMAN_REPO" "${{github.event.number}}" "${{ steps.getversion.outputs.version }}")
131
130
uri=`gh pr create \
132
131
--title "Bump Podman to v${{ steps.getversion.outputs.version }}" \
133
- --body "Triggered by https://github.com/$PODMAN_REPO/pull/${{github.event.number}} " \
132
+ --body "$body " \
134
133
--head "podmanbot:$bumpbranch" \
135
134
--base "${{github.base_ref}}" \
136
135
--repo $UPSTREAM_MACHINE_OS`
0 commit comments