forked from NVIDIA/NeMo
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'NVIDIA:main' into vneva-pretraining
- Loading branch information
Showing
464 changed files
with
42,454 additions
and
7,957 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
name: Cancel Workflow | ||
description: > | ||
Cancels the current workflow run, i.e. all jobs. Useful if you want to cancel the rest of the workflow when one job | ||
fails. Note that this will cause the workflow to appear cancelled, not failed. | ||
# Cancelling the workflow in a post-script (like this: | ||
# https://docs.github.com/en/actions/creating-actions/metadata-syntax-for-github-actions#runspost; can also be done with | ||
# this action: https://github.com/webiny/action-post-run, see Git history of this file) wouldn't help the status, it | ||
# would still be cancelled. It actually indeed is, but it would be nicer to set it to failed, but there seems to be no | ||
# way to do this. | ||
|
||
runs: | ||
using: "composite" | ||
steps: | ||
- name: Cancel Workflow | ||
# # Fork PRs won't have a token with write access to Actions, thus won't be able to cancel the workflow. | ||
# if: github.event.pull_request == '' || github.event.pull_request.head.repo.fork == false | ||
shell: bash | ||
run: | | ||
curl --verbose \ | ||
-X POST \ | ||
-H "Accept: application/vnd.github+json" \ | ||
-H "Authorization: Bearer ${{ github.token }}" \ | ||
-H "X-GitHub-Api-Version: 2022-11-28" \ | ||
https://api.github.com/repos/${{ github.repository }}/actions/runs/${{ github.run_id }}/cancel |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.