Skip to content

Commit c8a579c

Browse files
committed
test
1 parent 0d56da8 commit c8a579c

1 file changed

Lines changed: 6 additions & 4 deletions

File tree

.github/workflows/ci.yml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,8 @@ jobs:
107107
decentraland_inspector_s3_bucket_key: ${{ steps.publish_decentraland_inspector.outputs.s3-bucket-key }}
108108
decentraland_js_runtime_s3_bucket_key: ${{ steps.publish_dcl_js_runtime.outputs.s3-bucket-key }}
109109
decentraland_ecs_bucket_key: ${{ steps.publish_ecs.outputs.s3-bucket-key }}
110+
env:
111+
is_a_pr: github.event.pull_request.number && github.ref != 'refs/heads/protocol-squad'
110112
steps:
111113
- uses: actions/checkout@master
112114
- uses: actions/setup-node@v3
@@ -182,7 +184,7 @@ jobs:
182184

183185
- name: (PR) change @dcl/react-ecs dependencies versions to point to s3 url
184186
working-directory: ./packages/@dcl/react-ecs
185-
if: ${{ github.event.pull_request.number }} && ${{ github.head_ref || github.ref }} != "protocol-squad"
187+
if: ${{ env.is_a_pr }}
186188
run: |
187189
node -e "\
188190
let pkg=require('./package.json');\
@@ -234,7 +236,7 @@ jobs:
234236

235237
- name: (PR) change @dcl/sdk-commands dependencies versions to point to s3 url
236238
working-directory: ./packages/@dcl/sdk-commands
237-
if: ${{ github.event.pull_request.number }} && ${{ github.head_ref || github.ref }} != "protocol-squad"
239+
if: ${{ env.is_a_pr }}
238240
run: |
239241
node -e "\
240242
let pkg=require('./package.json');\
@@ -268,7 +270,7 @@ jobs:
268270

269271
- name: (PR) change @dcl/sdk version to s3 url
270272
working-directory: ./packages/@dcl/sdk
271-
if: ${{ github.event.pull_request.number }} && ${{ github.head_ref || github.ref }} != "protocol-squad"
273+
if: ${{ env.is_a_pr }}
272274
run: |
273275
node -e "\
274276
let pkg=require('./package.json');\
@@ -334,7 +336,7 @@ jobs:
334336
AWS_SECRET_ACCESS_KEY: ${{ secrets.SDK_TEAM_AWS_SECRET }}
335337
notify_deployment:
336338
needs: [build]
337-
if: ${{ github.event.pull_request.number }} && ${{ github.head_ref || github.ref }} != "protocol-squad"
339+
if: github.event.pull_request.number && github.ref != 'refs/heads/protocol-squad'
338340
runs-on: ubuntu-latest
339341
name: Deployment Notification
340342
steps:

0 commit comments

Comments
 (0)