diff --git a/.github/workflows/packs-data.yaml b/.github/workflows/packs-data.yaml index 4f6e6f1887..3d356f8ac8 100644 --- a/.github/workflows/packs-data.yaml +++ b/.github/workflows/packs-data.yaml @@ -5,8 +5,6 @@ on: # Runs at 5 minutes past the hour, every 6 hours. - cron: "5 */6 * * *" workflow_dispatch: - push: - branches-ignore: "master" env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} @@ -44,14 +42,6 @@ jobs: run: | gsutil cp gs://docs-education-automation/packs_inventory/packs_report.json ./packs_report.json - # - uses: actions-hub/gcloud@master - # env: - # PROJECT_ID: spectro-common-dev - # APPLICATION_CREDENTIALS: ${{ secrets.GOOGLE_APPLICATION_CREDENTIALS }} - # with: - # args: cp gs://docs-education-automation/packs_inventory/packs_report.json ./packs_report.json - # cli: gsutil - - name: Upload to S3 run: | aws s3 cp ./packs_report.json s3://docs.spectrocloud.com/packs-data/ @@ -59,12 +49,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/action-slack-notify@v2.3.2 - # 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.' \ No newline at end of file + - name: Slack Notification + if: ${{ failure() }} + uses: rtCamp/action-slack-notify@v2.3.2 + env: + SLACK_WEBHOOK: ${{ secrets.SLACK_PRIVATE_TEAM_WEBHOOK }} + SLACK_USERNAME: "spectromate" + SLACK_ICON_EMOJI: ":robot:" + SLACK_COLOR: ${{ job.status }} + SLACK_MESSAGE: 'The Deprecated Docs cron job that generates the `packs.json` file failed. Please check the logs for more details.' \ No newline at end of file