Skip to content

Commit 64381ce

Browse files
authored
chore: add dependabot workflow changes (#77)
* chore: add dependabot workflow changes * Update workflow triggers
1 parent 47fed0f commit 64381ce

File tree

1 file changed

+10
-6
lines changed

1 file changed

+10
-6
lines changed

.github/workflows/deploy-cf-it.yml

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,14 @@
11
name: deploy-cloud-functions Integration
22

3-
on: [push, pull_request]
3+
on:
4+
push:
5+
branches:
6+
- 'main'
7+
pull_request:
48

59
jobs:
610
gcloud:
7-
if: ${{ github.event_name == 'push' || github.repository == github.event.pull_request.head.repo.full_name }}
11+
if: ${{ github.event_name == 'push' || github.repository == github.event.pull_request.head.repo.full_name && github.actor != 'dependabot[bot]' }}
812
name: with setup-gcloud
913
runs-on: ubuntu-latest
1014
steps:
@@ -41,7 +45,7 @@ jobs:
4145
CF_NAME: projects/${{ secrets.DEPLOY_CF_PROJECT_ID }}/locations/us-central1/functions/cf-http-gcloud-${{ github.run_number }}
4246

4347
b64_json:
44-
if: ${{ github.event_name == 'push' || github.repository == github.event.pull_request.head.repo.full_name }}
48+
if: ${{ github.event_name == 'push' || github.repository == github.event.pull_request.head.repo.full_name && github.actor != 'dependabot[bot]' }}
4549
name: with base64 json creds
4650
runs-on: ubuntu-latest
4751
steps:
@@ -79,7 +83,7 @@ jobs:
7983
CF_NAME: projects/${{ secrets.DEPLOY_CF_PROJECT_ID }}/locations/us-central1/functions/cf-http-b64-${{ github.run_number }}
8084

8185
json:
82-
if: ${{ github.event_name == 'push' || github.repository == github.event.pull_request.head.repo.full_name }}
86+
if: ${{ github.event_name == 'push' || github.repository == github.event.pull_request.head.repo.full_name && github.actor != 'dependabot[bot]' }}
8387
name: with json creds
8488
runs-on: ubuntu-latest
8589
steps:
@@ -120,7 +124,7 @@ jobs:
120124
CF_REGION: us-east1
121125

122126
json-event-trigger:
123-
if: ${{ github.event_name == 'push' || github.repository == github.event.pull_request.head.repo.full_name }}
127+
if: ${{ github.event_name == 'push' || github.repository == github.event.pull_request.head.repo.full_name && github.actor != 'dependabot[bot]' }}
124128
name: test event trigger
125129
runs-on: ubuntu-latest
126130
steps:
@@ -156,7 +160,7 @@ jobs:
156160
DEPLOY_CF_SA_KEY_JSON: ${{ secrets.DEPLOY_CF_SA_KEY_JSON }}
157161
CF_NAME: projects/${{ secrets.DEPLOY_CF_PROJECT_ID }}/locations/us-central1/functions/cf-event-json-${{ github.run_number }}
158162
b64_json_invalid_src:
159-
if: ${{ github.event_name == 'push' || github.repository == github.event.pull_request.head.repo.full_name }}
163+
if: ${{ github.event_name == 'push' || github.repository == github.event.pull_request.head.repo.full_name && github.actor != 'dependabot[bot]' }}
160164
name: with invalid source dir
161165
runs-on: ubuntu-latest
162166
steps:

0 commit comments

Comments
 (0)