Skip to content
This repository was archived by the owner on Oct 16, 2022. It is now read-only.

Commit b3df487

Browse files
authored
Submit build to testing branch if release is prerelease
1 parent 27db5cd commit b3df487

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

.github/workflows/ImperialPlugins.PushRelease.OpenMod.yaml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ jobs:
1515
PLUGIN_NAME: "${{ github.event.repository.name }}"
1616
VERSION: "${{ github.event.release.tag_name }}"
1717
PRODUCT_BRANCH: "openmod"
18+
PRODUCT_TEST_BRANCH: "testing"
1819
RELEASE_DESCRIPTION: "${{ github.event.release.body }}"
1920
ASSET_FILE_NAME: "${{ github.event.repository.name }}-OpenMod-v${{ github.event.release.tag_name }}.zip"
2021
IP_API_KEY: "${{ secrets.IMPERIALPLUGINS_API_KEY }}"
@@ -41,13 +42,14 @@ jobs:
4142
token: "${{ secrets.GITHUB_TOKEN }}"
4243

4344
- name: Build Post File
45+
if: ${{ github. }}
4446
run: |
4547
jo markdownChangelog=@description.txt \
4648
displayVersion="${{ env.VERSION }}" \
4749
forceUpdate=false \
4850
file[fileName]="${{ env.ASSET_FILE_NAME }}" \
4951
file[base64]="%${{ env.ASSET_FILE_NAME }}" \
50-
productBranchIdentifier="${{ env.PRODUCT_BRANCH }}" \
52+
productBranchIdentifier="${{ github.event.release.prerelease && env.PRODUCT_TEST_BRANCH || env.PRODUCT_BRANCH }}" \
5153
productId=${{ env.PRODUCT_ID }} > postdata.txt
5254
sed -i "s/base64\":\"/base64\":\"data:application\/x-zip-compressed;base64,/" postdata.txt
5355
shell: bash

0 commit comments

Comments
 (0)