Skip to content

Commit 98f2dae

Browse files
committed
ci: use biolab-helper access token in cleanup workflow instead of the default one. Add lint workflow to cleanup process.
1 parent 87849a8 commit 98f2dae

File tree

1 file changed

+7
-25
lines changed

1 file changed

+7
-25
lines changed
Lines changed: 7 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -1,40 +1,22 @@
1+
# This is a temporary solution until Github actions provide an official support for this.
2+
# Workflow ids are located here: https://api.github.com/repos/biolab/orange3/actions/workflows
3+
14
name: Cleanup workflow
25

36
on:
47
pull_request:
58
branches:
69
- master
710

8-
# This is a temporary solution until Github actions provide an official support for this.
9-
# Workflow ids are located here: https://api.github.com/repos/biolab/orange3/actions/workflows
10-
1111
jobs:
1212
cancel:
1313
name: 'Cancel Previous Runs'
1414
runs-on: ubuntu-latest
1515
timeout-minutes: 3
1616

1717
steps:
18-
- name: Cleanup Linux workflow
19-
uses: styfle/cancel-workflow-action@0.2.0
20-
with:
21-
workflow_id: 685155
22-
access_token: ${{ secrets.GITHUB_TOKEN }}
23-
24-
- name: Cleanup macOS workflow
25-
uses: styfle/cancel-workflow-action@0.2.0
26-
with:
27-
workflow_id: 685156
28-
access_token: ${{ secrets.GITHUB_TOKEN }}
29-
30-
- name: Cleanup Windows workflow
31-
uses: styfle/cancel-workflow-action@0.2.0
32-
with:
33-
workflow_id: 685157
34-
access_token: ${{ secrets.GITHUB_TOKEN }}
35-
36-
- name: Cleanup Documentation workflow
37-
uses: styfle/cancel-workflow-action@0.2.0
18+
- name: Cleanup workflow
19+
uses: styfle/cancel-workflow-action@0.3.1
3820
with:
39-
workflow_id: 685153
40-
access_token: ${{ secrets.GITHUB_TOKEN }}
21+
workflow_id: 685155, 685156, 685157, 685153, 685154
22+
access_token: ${{ secrets.GH_ACCESS_TOKEN }}

0 commit comments

Comments
 (0)