From fe18d111af065c4d120654fe41a2afb89553bdfd Mon Sep 17 00:00:00 2001 From: Bogdan Roman Date: Fri, 29 Nov 2019 11:37:31 +0100 Subject: [PATCH] Cancel previous job before starting a new one --- .github/workflows/ci.yml | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index d5d4c96..f402938 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -48,11 +48,18 @@ jobs: docker push bluebrain/nexus-iam:latest - name: TriggerIntegrationTests run: | + echo '${{ secrets.JOB_DELETION_MANIFEST }}' | curl -s \ + -XDELETE \ + -H"Authorization: Bearer ${{ secrets.JOB_TOKEN }}" \ + -H"Content-Type: application/yaml" \ + --data-binary @- \ + -o /dev/null \ + ${{ secrets.JOB_ADDRESS }}/test-runner-iam-latest echo '${{ secrets.JOB_MANIFEST }}' | sed -e 's/{VERSION}/latest/g' -e 's/{SERVICE}/iam/g' | curl -s \ -XPOST \ -H"Authorization: Bearer ${{ secrets.JOB_TOKEN }}" \ -H"Content-Type: application/yaml" \ - -d @- \ + --data-binary @- \ -o /dev/null \ ${{ secrets.JOB_ADDRESS }} - name: RecordCoverage