diff --git a/.github/workflows/test-platforms.yml b/.github/workflows/test-platforms.yml index 1b7b4cec..5398ce11 100644 --- a/.github/workflows/test-platforms.yml +++ b/.github/workflows/test-platforms.yml @@ -203,7 +203,7 @@ jobs: with: route: 'POST /repos/${{ github.repository }}/statuses/${{ needs.pr-info.outputs.sha }}' context: '${{ env.STATUS_NAME }} ${{ needs.pr-info.outputs.launch_args }}' - description: 'running tests with args: ${{ steps.generate_query.outputs.launch_args }}' + description: 'running tests with args ${{ steps.generate_query.outputs.launch_args }}' state: pending target_url: 'https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}' env: @@ -319,3 +319,25 @@ jobs: # # TODO: timeouts? # # TODO: implement waive # # TODO: implement progress from anaconda repo + # + + result: + if: ${{ always() }} + name: Set result status + runs-on: ubuntu-latest + env: + STATUS_NAME: test-platforms + needs: [platform, pr-info] + steps: + - name: Show overall status + uses: octokit/request-action@v2.x + with: + route: 'POST /repos/${{ github.repository }}/statuses/${{ needs.pr-info.outputs.sha }}' + context: '${{ env.STATUS_NAME }} ${{ needs.pr-info.outputs.launch_args }}' + description: 'finished' + state: ${{ needs.platform.result }} + target_url: 'https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}' + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} +# if: ${{ needs.build.result != 'success' }} +# run: exit 1