Skip to content

Commit 2f8e10b

Browse files
authored
Merge pull request #5024 from scp-fs2open/fix/CI-POST-result-status
Change check of POST response result
2 parents 5857b56 + 0acb224 commit 2f8e10b

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

.github/workflows/post-build-release.yaml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,14 @@ jobs:
5959
LINUX_RESULT: ${{ inputs.linux_result }}
6060
WINDOWS_RESULT: ${{ inputs.windows_result }}
6161
MAC_RESULT: ${{ inputs.mac_result }}
62+
GITHUB_REPO: ${{ github.repository }} # repo this workflow was called from
63+
INDIEGAMES_USER: ${{ secrets.INDIEGAMES_USER }}
64+
INDIEGAMES_SSHPASS: ${{ secrets.INDIEGAMES_PASSWORD }}
65+
NEBULA_USER: ${{ secrets.NEBULA_USER }}
66+
NEBULA_PASSWORD: ${{ secrets.NEBULA_PASSWORD }}
67+
HLP_API: ${{ secrets.HLP_API }}
68+
HLP_KEY: ${{ secrets.HLP_KEY }}
69+
RELEASE_TAG: ${{ inputs.releaseTag }}
6270
run: python ci/post/main.py release
6371

6472
- name: Post Builds (Manual trigger)

ci/post/forum.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ def create_post(self, title, content, board):
4040
"body": content
4141
})
4242

43-
if resp.text != "OK":
43+
if resp.status_code != 200:
4444
print("Post failed! Response: %s" %resp.text)
4545

4646
return resp.json()

0 commit comments

Comments
 (0)