Skip to content

Commit ae158b5

Browse files
committed
Determine e2e branch based on version number
1 parent a77181e commit ae158b5

File tree

1 file changed

+13
-1
lines changed

1 file changed

+13
-1
lines changed

.github/workflows/custopize.yml

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ jobs:
2424
tag: ${{ env.RELEASE_TAG }}
2525
image-zip: ${{ env.IMAGE_ZIP }}
2626
image-url: ${{ env.IMAGE_URL }}
27+
e2e-branch: ${{ env.E2E_BRANCH }}
2728
steps:
2829

2930
- name: "⬇ Checkout"
@@ -131,6 +132,17 @@ jobs:
131132
132133
echo "OCTOPRINT_VERSION=$OCTOPRINT_VERSION" >> $GITHUB_ENV
133134
135+
- name: "🔎 Determine e2e branch"
136+
run: |
137+
E2E_BRANCH="master"
138+
if [[ "${{ env.OCTOPRINT_VERSION }}" == *"-rc"* ]]; then
139+
E2E_BRANCH="maintenance"
140+
fi
141+
142+
echo "E2E branch: $E2E_BRANCH"
143+
144+
echo "E2E_BRANCH=$E2E_BRANCH" >> $GITHUB_ENV
145+
134146
- name: "⬇ Download OctoPi"
135147
id: octopi_download
136148
run: |
@@ -240,7 +252,7 @@ jobs:
240252
workflow: Test against testrig
241253
repo: OctoPrint/devtools
242254
ref: main
243-
inputs: '{"image": "${{ needs.build.outputs.image-url }}", "target": "pic"}'
255+
inputs: '{"image": "${{ needs.build.outputs.image-url }}", "target": "pic", "e2e-branch": "${{ needs.build.outputs.e2e-branch }}"}'
244256
repost-logs: false
245257

246258
deploy:

0 commit comments

Comments
 (0)