Skip to content

Commit ced54b9

Browse files
committed
fix: Remove Google Cloud upload entirely
1 parent 327646b commit ced54b9

File tree

1 file changed

+1
-29
lines changed

1 file changed

+1
-29
lines changed

.github/workflows/acceptance_test.yml

Lines changed: 1 addition & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -160,24 +160,8 @@ jobs:
160160
path: scripts/mobility-database-harvester/datasets_metadata
161161
outputs:
162162
matrix: ${{ steps.set-matrix.outputs.matrix }}
163-
secrets-gate:
164-
runs-on: ubuntu-latest
165-
outputs:
166-
ok: ${{ steps.check-secrets.outputs.ok }}
167-
steps:
168-
- name: Check for secrets needed to upload validation reports to GCP Cloud Storage
169-
id: check-secrets
170-
run: |
171-
# FIXME: The below IF statement always returns false and therefore skips uploads even on branches from this repo. See https://github.com/MobilityData/gtfs-validator/issues/1128
172-
if [ "${{ secrets.VALIDATOR_SA_KEY }}" != "" ]; then
173-
echo "Secrets to upload validations reports to Google Cloud are configured in the repo."
174-
echo "::set-output name=ok::true"
175-
else
176-
echo "Secrets are NOT configured to upload validation reports to Google Cloud - skipping upload. This is expected for pull requests from forks."
177-
echo "::set-output name=ok::false"
178-
fi
179163
get-reports:
180-
needs: [ fetch-urls, pack-master, pack-snapshot, secrets-gate ]
164+
needs: [ fetch-urls, pack-master, pack-snapshot ]
181165
runs-on: ubuntu-latest
182166
strategy:
183167
matrix: ${{ fromJson(needs.fetch-urls.outputs.matrix) }}
@@ -202,18 +186,6 @@ jobs:
202186
with:
203187
name: reports_all
204188
path: ${{ github.sha }}/output
205-
- name: Set up and authorize Cloud
206-
uses: google-github-actions/auth@v0
207-
if: needs.secrets-gate.outputs.ok == 'true'
208-
with:
209-
credentials_json: ${{ secrets.VALIDATOR_SA_KEY }}
210-
- name: Upload reports to Google Cloud Storage
211-
id: upload-files
212-
uses: google-github-actions/upload-cloud-storage@main
213-
if: needs.secrets-gate.outputs.ok == 'true'
214-
with:
215-
path: ${{ github.sha }}/output
216-
destination: gtfs-validator-reports
217189
compare-outputs:
218190
needs: [ get-reports ]
219191
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)