File tree Expand file tree Collapse file tree 2 files changed +29
-2
lines changed Expand file tree Collapse file tree 2 files changed +29
-2
lines changed Original file line number Diff line number Diff line change 9
9
publish :
10
10
if : |
11
11
github.repository_owner == 'viamrobotics'
12
- && (( github.event_name == 'workflow_dispatch' && contains(fromJson('["njooma"]'), github.actor)) || github.event_name == 'release')
12
+ && (github.event_name == 'workflow_dispatch' || github.event_name == 'release')
13
13
runs-on : [self-hosted, x64]
14
14
container :
15
15
image : ghcr.io/viamrobotics/canon:amd64
16
16
17
17
steps :
18
+ - name : Check if organization member
19
+ id : is_organization_member
20
+ if : github.event_name == 'workflow_dispatch'
21
+ uses : jamessingleton/is-organization-member@1.0.1
22
+ with :
23
+ organization : viamrobotics
24
+ username : ${{ github.actor }}
25
+ token : ${{ secrets.GITHUB_TOKEN }}
26
+
27
+ - name : cancelling
28
+ uses : andymckay/cancel-action@0.2
29
+ if : |
30
+ github.event_name == 'workflow_dispatch' && steps.is_organization_member.outputs.result == 'false'
31
+
18
32
- name : Download Release
19
33
uses : dsaltares/fetch-gh-release-asset@master
20
34
with :
Original file line number Diff line number Diff line change 20
20
21
21
jobs :
22
22
prepare :
23
- if : github.repository_owner == 'viamrobotics' && github.ref == 'refs/heads/main' && contains(fromJson('["njooma"]'), github.actor )
23
+ if : github.repository_owner == 'viamrobotics' && github.ref == 'refs/heads/main')
24
24
runs-on : [self-hosted, x64]
25
25
container :
26
26
image : ghcr.io/viamrobotics/canon:amd64
27
27
outputs :
28
28
sha : ${{ steps.commit.outputs.commit_long_sha }}
29
29
version : ${{ steps.bump_version.outputs.version }}
30
30
steps :
31
+ - name : Check if organization member
32
+ id : is_organization_member
33
+ uses : jamessingleton/is-organization-member@1.0.1
34
+ with :
35
+ organization : viamrobotics
36
+ username : ${{ github.actor }}
37
+ token : ${{ secrets.GITHUB_TOKEN }}
38
+
39
+ - name : cancelling
40
+ uses : andymckay/cancel-action@0.2
41
+ if : |
42
+ steps.is_organization_member.outputs.result == 'false'
43
+
31
44
- name : Checkout Code
32
45
uses : actions/checkout@v3
33
46
with :
You can’t perform that action at this time.
0 commit comments