|
1 | 1 | name: deploy-cloud-functions Integration
|
2 | 2 |
|
3 |
| -on: [push, pull_request] |
| 3 | +on: |
| 4 | + push: |
| 5 | + branches: |
| 6 | + - 'main' |
| 7 | + pull_request: |
4 | 8 |
|
5 | 9 | jobs:
|
6 | 10 | 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]' }} |
8 | 12 | name: with setup-gcloud
|
9 | 13 | runs-on: ubuntu-latest
|
10 | 14 | steps:
|
|
41 | 45 | CF_NAME: projects/${{ secrets.DEPLOY_CF_PROJECT_ID }}/locations/us-central1/functions/cf-http-gcloud-${{ github.run_number }}
|
42 | 46 |
|
43 | 47 | 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]' }} |
45 | 49 | name: with base64 json creds
|
46 | 50 | runs-on: ubuntu-latest
|
47 | 51 | steps:
|
|
79 | 83 | CF_NAME: projects/${{ secrets.DEPLOY_CF_PROJECT_ID }}/locations/us-central1/functions/cf-http-b64-${{ github.run_number }}
|
80 | 84 |
|
81 | 85 | 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]' }} |
83 | 87 | name: with json creds
|
84 | 88 | runs-on: ubuntu-latest
|
85 | 89 | steps:
|
@@ -120,7 +124,7 @@ jobs:
|
120 | 124 | CF_REGION: us-east1
|
121 | 125 |
|
122 | 126 | 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]' }} |
124 | 128 | name: test event trigger
|
125 | 129 | runs-on: ubuntu-latest
|
126 | 130 | steps:
|
@@ -156,7 +160,7 @@ jobs:
|
156 | 160 | DEPLOY_CF_SA_KEY_JSON: ${{ secrets.DEPLOY_CF_SA_KEY_JSON }}
|
157 | 161 | CF_NAME: projects/${{ secrets.DEPLOY_CF_PROJECT_ID }}/locations/us-central1/functions/cf-event-json-${{ github.run_number }}
|
158 | 162 | 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]' }} |
160 | 164 | name: with invalid source dir
|
161 | 165 | runs-on: ubuntu-latest
|
162 | 166 | steps:
|
|
0 commit comments