Skip to content

Commit

Permalink
fixing condition checks
Browse files Browse the repository at this point in the history
  • Loading branch information
j-i-l committed May 13, 2024
1 parent b875d38 commit af7d504
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions .github/workflows/memory_checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -119,14 +119,13 @@ jobs:
- name: Check if on demand tasks succeeded
#TODO: Properly establish what has failead and what not
run: |
echo ${{ toJson(needs.run_memory_check) }}
gh pr edit ${{ env.EVENT }} --remove-label ${{ env.LABEL_CHECK }}
if [ ${{ needs.run_memory_check.outcome }} == "success" ]; then
if [ ${{ needs.run_memory_check.result }} == "success" ]; then
gh pr edit ${{ env.EVENT }} --remove-label ${{ env.LABEL_CHECK }} --repo ${{ env.OWNER }}/${{ env.REPO }}
gh pr edit ${{ env.EVENT }} --add-label ${{ env.LABEL_SUCCESS }} --repo ${{ env.OWNER }}/${{ env.REPO }}
echo "### ${{ github.event.label.url }} passed! :rocket:" >> $GITHUB_STEP_SUMMARY
exit 0
elif [ ${{ needs.run_memory_check.outcome }} == "failure" ]; then
elif [ ${{ needs.run_memory_check.result }} == "failure" ]; then
gh pr edit ${{ env.EVENT }} --add-label ${{ env.LABEL_FAILURE }} --repo ${{ env.OWNER }}/${{ env.REPO }}
echo "### ${{ github.event.label.url }} failed!" >> $GITHUB_STEP_SUMMARY
exit 1
Expand Down

0 comments on commit af7d504

Please sign in to comment.