This repository was archived by the owner on Oct 16, 2022. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change 15
15
PLUGIN_NAME : " ${{ github.event.repository.name }}"
16
16
VERSION : " ${{ github.event.release.tag_name }}"
17
17
PRODUCT_BRANCH : " openmod"
18
+ PRODUCT_TEST_BRANCH : " testing"
18
19
RELEASE_DESCRIPTION : " ${{ github.event.release.body }}"
19
20
ASSET_FILE_NAME : " ${{ github.event.repository.name }}-OpenMod-v${{ github.event.release.tag_name }}.zip"
20
21
IP_API_KEY : " ${{ secrets.IMPERIALPLUGINS_API_KEY }}"
@@ -41,13 +42,14 @@ jobs:
41
42
token : " ${{ secrets.GITHUB_TOKEN }}"
42
43
43
44
- name : Build Post File
45
+ if : ${{ github. }}
44
46
run : |
45
47
jo markdownChangelog=@description.txt \
46
48
displayVersion="${{ env.VERSION }}" \
47
49
forceUpdate=false \
48
50
file[fileName]="${{ env.ASSET_FILE_NAME }}" \
49
51
file[base64]="%${{ env.ASSET_FILE_NAME }}" \
50
- productBranchIdentifier="${{ env.PRODUCT_BRANCH }}" \
52
+ productBranchIdentifier="${{ github.event.release.prerelease && env.PRODUCT_TEST_BRANCH || env.PRODUCT_BRANCH }}" \
51
53
productId=${{ env.PRODUCT_ID }} > postdata.txt
52
54
sed -i "s/base64\":\"/base64\":\"data:application\/x-zip-compressed;base64,/" postdata.txt
53
55
shell : bash
You can’t perform that action at this time.
0 commit comments