-
Notifications
You must be signed in to change notification settings - Fork 37
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
593c4d6
commit e2fba45
Showing
1 changed file
with
14 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -29,18 +29,20 @@ jobs: | |
secretId: ${{ secrets.VAULT_SECRET_ID }} | ||
secrets: /providers/github/organizations/spectrocloud/token?org_name=spectrocloud token | VAULT_GITHUB_TOKEN | ||
|
||
|
||
- uses: 'google-github-actions/auth@v2' | ||
with: | ||
project_id: spectro-common-dev | ||
credentials_json: ${{ secrets.GOOGLE_APPLICATION_CREDENTIALS }} | ||
cleanup_credentials: true | ||
|
||
|
||
- name: 'Set up Cloud SDK' | ||
uses: 'google-github-actions/setup-gcloud@v2' | ||
with: | ||
version: '>= 363.0.0' | ||
version: '>= 503.0.0' | ||
|
||
- name: 'Get Packs Data' | ||
run: | | ||
gsutil cp gs://docs-education-automation/packs_inventory/packs_report.json ./packs_report.json | ||
# - uses: actions-hub/gcloud@master | ||
# env: | ||
|
@@ -57,12 +59,12 @@ jobs: | |
aws s3 cp ./packs_report.json s3://docs-latest.spectrocloud.com/packs-data/ | ||
aws cloudfront create-invalidation --distribution-id ${{ secrets.LATEST_DOCS_DISTRIBUTION_ID }} --paths "/packs-data/packs_report.json" | ||
- name: Slack Notification | ||
if: ${{ failure() }} | ||
uses: rtCamp/[email protected] | ||
env: | ||
SLACK_WEBHOOK: ${{ secrets.SLACK_PRIVATE_TEAM_WEBHOOK }} | ||
SLACK_USERNAME: "spectromate" | ||
SLACK_ICON_EMOJI: ":robot:" | ||
SLACK_COLOR: ${{ job.status }} | ||
SLACK_MESSAGE: 'The Docs cron job that generates the `packs.json` file failed. Please check the logs for more details.' | ||
# - name: Slack Notification | ||
# if: ${{ failure() }} | ||
# uses: rtCamp/[email protected] | ||
# env: | ||
# SLACK_WEBHOOK: ${{ secrets.SLACK_PRIVATE_TEAM_WEBHOOK }} | ||
# SLACK_USERNAME: "spectromate" | ||
# SLACK_ICON_EMOJI: ":robot:" | ||
# SLACK_COLOR: ${{ job.status }} | ||
# SLACK_MESSAGE: 'The Docs cron job that generates the `packs.json` file failed. Please check the logs for more details.' |