Skip to content
This repository has been archived by the owner on Sep 27, 2021. It is now read-only.

Commit

Permalink
Cancel previous job before starting a new one
Browse files Browse the repository at this point in the history
  • Loading branch information
Bogdan Roman committed Nov 29, 2019
1 parent 6ad543e commit fe18d11
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion .github/workflows/ci.yml
Expand Up @@ -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
Expand Down

0 comments on commit fe18d11

Please sign in to comment.