Skip to content

Commit f30aed3

Browse files
authored
Update blossom-ci.yml
fix: test WAR for github CI
1 parent 5aaf78a commit f30aed3

File tree

1 file changed

+17
-14
lines changed

1 file changed

+17
-14
lines changed

.github/workflows/blossom-ci.yml

Lines changed: 17 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -26,21 +26,21 @@ on:
2626
description: 'argument'
2727
required: false
2828
jobs:
29-
Get-Authorization:
30-
runs-on: ubuntu-latest
31-
outputs:
32-
AUTHORIZED: ${{ steps.check-authorization.outputs.defined }}
33-
steps:
34-
- id: check-authorization
35-
env:
36-
AUTHORIZED_USERS: ${{ secrets.AUTHORIZED_USERS }}
37-
if: |
38-
contains( ${{ env.AUTHORIZED_USERS }}, format('{0},', github.actor)) &&
39-
github.event.comment.body == '/nvidia-ci'
40-
run: echo "::set-output name=defined::true"
29+
# Get-Authorization:
30+
# runs-on: ubuntu-latest
31+
# outputs:
32+
# AUTHORIZED: ${{ steps.check-authorization.outputs.defined }}
33+
# steps:
34+
# - id: check-authorization
35+
# env:
36+
# AUTHORIZED_USERS: ${{ secrets.AUTHORIZED_USERS }}
37+
# if: |
38+
# contains( ${{ env.AUTHORIZED_USERS }}, format('{0},', github.actor)) &&
39+
# github.event.comment.body == '/nvidia-ci'
40+
# run: echo "::set-output name=defined::true"
4141

4242
Authorization:
43-
needs: [Get-Authorization]
43+
# needs: [Get-Authorization]
4444
name: Authorization
4545
runs-on: blossom
4646
env:
@@ -49,7 +49,10 @@ jobs:
4949
args: ${{ env.args }}
5050

5151
# This job only runs for pull request comments
52-
if: needs.Get-Authorization.outputs.check-authorization == 'true'
52+
if: |
53+
contains( ${{ env.AUTHORIZED_USERS }}, format('{0},', github.actor)) &&
54+
github.event.comment.body == '/nvidia-ci'
55+
# if: needs.Get-Authorization.outputs.check-authorization == 'true'
5356
steps:
5457
- name: Check if comment is issued by authorized person
5558
run: blossom-ci

0 commit comments

Comments
 (0)