We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1025526 commit 3a8197fCopy full SHA for 3a8197f
.github/workflows/tutorials.yml
@@ -65,3 +65,13 @@ jobs:
65
sleep 300
66
esac
67
done
68
+ - name: Cancel ongoing run if cancelled or failed
69
+ if: ${{ failure() || cancelled() }}
70
+ run: |
71
+ set -x
72
+ RUN_ID=${{ steps.dispatched.outputs.run_id }}
73
+ echo "Something went wrong, cancelling dispatched run"
74
+ curl -s -X POST \
75
+ -H "Accept: application/vnd.github+json" \
76
+ -H "Authorization: Bearer ${{ secrets.TUTORIAL_ACCESS_TOKEN }}" \
77
+ https://api.github.com/repos/miykael/nipype_tutorial/actions/runs/${RUN_ID}/cancel
0 commit comments