Merge pull request #6292 from aznashwan/windows-integration-conditional-artefact-upload
Integration: Check GCP secrets on Windows CI artifact upload.
This commit is contained in:
commit
1b8af3752d
8
.github/workflows/windows-periodic.yml
vendored
8
.github/workflows/windows-periodic.yml
vendored
@ -190,7 +190,14 @@ jobs:
|
||||
jq -n --arg result SUCCESS --arg timestamp $(date +%s) '$timestamp|tonumber|{timestamp:.,$result}' > ${{ env.LOGS_DIR }}/finished.json
|
||||
echo "${{ env.STARTED_TIME }}" > $HOME/latest-build.txt
|
||||
|
||||
- name: AssignGcpCreds
|
||||
id: AssignGcpCreds
|
||||
run: |
|
||||
echo '::set-output name=GCP_PROJECT_ID::${{ secrets.GCP_PROJECT_ID }}'
|
||||
echo '::set-output name=GCP_SA_KEY::${{ secrets.GCP_SA_KEY }}'
|
||||
|
||||
- name: SetUpCloudSDK
|
||||
if: steps.AssignGcpCreds.outputs.GCP_PROJECT_ID && steps.AssignGcpCreds.outputs.GCP_SA_KEY
|
||||
uses: google-github-actions/setup-gcloud@master
|
||||
with:
|
||||
project_id: ${{ secrets.GCP_PROJECT_ID }}
|
||||
@ -198,6 +205,7 @@ jobs:
|
||||
export_default_credentials: true
|
||||
|
||||
- name: UploadArtifacts
|
||||
if: steps.AssignGcpCreds.outputs.GCP_PROJECT_ID && steps.AssignGcpCreds.outputs.GCP_SA_KEY
|
||||
run: |
|
||||
gsutil cp -r ${{ env.LOGS_DIR }} ${{ matrix.GOOGLE_BUCKET }}
|
||||
gsutil cp $HOME/latest-build.txt ${{ matrix.GOOGLE_BUCKET }}
|
||||
|
Loading…
Reference in New Issue
Block a user