This repository was archived by the owner on May 12, 2026. It is now read-only.
Alert if upgrade is necessary #128
This file contains hidden or 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
| name: Alert if upgrade is necessary | |
| on: | |
| workflow_dispatch: | |
| schedule: | |
| - cron: "7 13 * * Mon" | |
| jobs: | |
| alert_version_upgrade: | |
| name: Alert on Version upgrade | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Check Out Changes | |
| uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 | |
| with: | |
| fetch-depth: 0 | |
| - name: check for version upgrade | |
| id: PD | |
| shell: pwsh | |
| run: | | |
| ./.github/scripts/MetabaseUpgrade/MetabaseApi.ps1 | |
| - name: Get Version upgrade Details | |
| id: VersionUpgrade | |
| shell: pwsh | |
| run: | | |
| echo "${env:Versionupdates}" >> Versionupdates.json | |
| - name: JSON to variables | |
| uses: supriyaaddagada/json-to-variables@00f6ff3a5f15f4bc0ed261ea4c8c23147a717a36 | |
| with: | |
| filename: 'Versionupdates.json' | |
| prefix: Schedules | |
| - name: Slack Notification | |
| if: ${{ env.Schedules_UpgradeDetails_0_UpgradeRequired == 'true'}} | |
| uses: ./.github/actions/notifications | |
| with: | |
| method: slack | |
| title: Metabase upgrade Notification | |
| message: | | |
| "Staging Metabase Version": "${{ env.Schedules_UpgradeDetails_0_StgVersion }}" | |
| "Production Metabase Version": "${{ env.Schedules_UpgradeDetails_0_PrdVersion }}" | |
| icon-emoji: ':bell:' | |
| channel: cdc-reportstream-bot-notifications | |
| webhook-url: ${{ secrets.SLACK_WEBHOOK_URL_NAVA_BOT_NOTIFICATIONS_CHANNEL }} | |
| color: warning | |