diff --git a/.github/workflows/packs-data.yaml b/.github/workflows/packs-data.yaml index 9ce79f398e..3d356f8ac8 100644 --- a/.github/workflows/packs-data.yaml +++ b/.github/workflows/packs-data.yaml @@ -5,6 +5,7 @@ on: # Runs at 5 minutes past the hour, every 6 hours. - cron: "5 */6 * * *" workflow_dispatch: + env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} AWS_ACCESS_KEY_ID: ${{ secrets.AWS_S3_ACCESS_KEY }} @@ -26,13 +27,20 @@ jobs: secretId: ${{ secrets.VAULT_SECRET_ID }} secrets: /providers/github/organizations/spectrocloud/token?org_name=spectrocloud token | VAULT_GITHUB_TOKEN - - uses: actions-hub/gcloud@master - env: - PROJECT_ID: spectro-common-dev - APPLICATION_CREDENTIALS: ${{ secrets.GOOGLE_APPLICATION_CREDENTIALS }} + - 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: - args: cp gs://docs-education-automation/packs_inventory/packs_report.json ./packs_report.json - cli: gsutil + version: '>= 503.0.0' + + - name: 'Get Packs Data' + run: | + gsutil cp gs://docs-education-automation/packs_inventory/packs_report.json ./packs_report.json - name: Upload to S3 run: | @@ -49,4 +57,4 @@ jobs: 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 + 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 diff --git a/docs/docs-content/enterprise-version/install-palette/install-on-vmware/airgap-install/install.md b/docs/docs-content/enterprise-version/install-palette/install-on-vmware/airgap-install/install.md index 68625d67b3..53f2933217 100644 --- a/docs/docs-content/enterprise-version/install-palette/install-on-vmware/airgap-install/install.md +++ b/docs/docs-content/enterprise-version/install-palette/install-on-vmware/airgap-install/install.md @@ -280,7 +280,7 @@ Use the following steps to install Palette. attempt. For example: ```bash - palette ec install --config /home/spectro/.palette/ec/ec-20230706150945/ec.yaml + palette ec install --config-file /home/spectro/.palette/ec/ec-20230706150945/ec.yaml ``` ::: diff --git a/docs/docs-content/enterprise-version/install-palette/install-on-vmware/install.md b/docs/docs-content/enterprise-version/install-palette/install-on-vmware/install.md index a449b5830c..418a0fbd32 100644 --- a/docs/docs-content/enterprise-version/install-palette/install-on-vmware/install.md +++ b/docs/docs-content/enterprise-version/install-palette/install-on-vmware/install.md @@ -252,7 +252,7 @@ Use the following steps to install Palette. attempt. For example: ```bash - palette ec install --config /home/spectro/.palette/ec/ec-20230706150945/ec.yaml + palette ec install --config-file /home/spectro/.palette/ec/ec-20230706150945/ec.yaml ``` ::: diff --git a/docs/docs-content/vertex/install-palette-vertex/install-on-vmware/install.md b/docs/docs-content/vertex/install-palette-vertex/install-on-vmware/install.md index cda78a1f0e..3a6307ac58 100644 --- a/docs/docs-content/vertex/install-palette-vertex/install-on-vmware/install.md +++ b/docs/docs-content/vertex/install-palette-vertex/install-on-vmware/install.md @@ -294,7 +294,7 @@ Use the following steps to install Palette VerteX. attempt. For example: ```bash - palette ec install --config /home/spectro/.palette/ec/ec-20230706150945/ec.yaml + palette ec install --config-file /home/spectro/.palette/ec/ec-20230706150945/ec.yaml ``` :::