Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 20 additions & 0 deletions .github/workflows/cleanup.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name: cleanup-workflow

on:
workflow_run:
workflows:
- "build"
types: ["requested"]

jobs:
cancel-duplicated-workflow:
name: "Cancel duplicated workflow"
runs-on: ubuntu-latest
steps:
- uses: potiuk/cancel-workflow-runs@953e057dc81d3458935a18d1184c386b0f6b5738 # tested
name: "Cancel duplicate workflows"
with:
cancelMode: allDuplicates
token: ${{ secrets.GITHUB_TOKEN }}
sourceRunId: ${{ github.event.workflow_run.id }}
skipEventTypes: '["schedule"]'
8 changes: 0 additions & 8 deletions .github/workflows/pythonapp.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,6 @@ jobs:
flake8-py3:
runs-on: ubuntu-latest
steps:
- name: Cancel Previous Jobs
uses: styfle/cancel-workflow-action@0.7.0
with:
access_token: ${{ github.token }}
- uses: actions/checkout@v2
- name: Set up Python 3.8
uses: actions/setup-python@v2
Expand Down Expand Up @@ -188,10 +184,6 @@ jobs:
options: --gpus all
runs-on: [self-hosted, linux, x64, common]
steps:
- name: Cancel Previous Self-hosted Runs
uses: styfle/cancel-workflow-action@0.7.0
with:
access_token: ${{ github.token }}
- uses: actions/checkout@v2
- name: apt install
run: |
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/weekly-preview.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ on:

jobs:
packaging:
if: github.repository == 'Project-MONAI/MONAI'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
Expand Down