Skip to content

Commit

Permalink
Determine e2e branch based on version number
Browse files Browse the repository at this point in the history
  • Loading branch information
foosel committed Jun 18, 2024
1 parent a77181e commit ae158b5
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion .github/workflows/custopize.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ jobs:
tag: ${{ env.RELEASE_TAG }}
image-zip: ${{ env.IMAGE_ZIP }}
image-url: ${{ env.IMAGE_URL }}
e2e-branch: ${{ env.E2E_BRANCH }}
steps:

- name: "⬇ Checkout"
Expand Down Expand Up @@ -131,6 +132,17 @@ jobs:
echo "OCTOPRINT_VERSION=$OCTOPRINT_VERSION" >> $GITHUB_ENV
- name: "🔎 Determine e2e branch"
run: |
E2E_BRANCH="master"
if [[ "${{ env.OCTOPRINT_VERSION }}" == *"-rc"* ]]; then
E2E_BRANCH="maintenance"
fi
echo "E2E branch: $E2E_BRANCH"
echo "E2E_BRANCH=$E2E_BRANCH" >> $GITHUB_ENV
- name: "⬇ Download OctoPi"
id: octopi_download
run: |
Expand Down Expand Up @@ -240,7 +252,7 @@ jobs:
workflow: Test against testrig
repo: OctoPrint/devtools
ref: main
inputs: '{"image": "${{ needs.build.outputs.image-url }}", "target": "pic"}'
inputs: '{"image": "${{ needs.build.outputs.image-url }}", "target": "pic", "e2e-branch": "${{ needs.build.outputs.e2e-branch }}"}'
repost-logs: false

deploy:
Expand Down

0 comments on commit ae158b5

Please sign in to comment.