fix: Sets correct zone_id
when use_replication_spec_per_shard
is false and refactors replica_set_scaling_strategy
handling with old schema of advanced cluster
#70
Workflow file for this run
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: Generate Changelog | |
on: | |
pull_request: | |
types: [closed] | |
branches: [master] | |
paths: | |
- .changelog/** | |
workflow_dispatch: | |
jobs: | |
generate-and-update-changelog: | |
if: github.event.pull_request.merged || github.event_name == 'workflow_dispatch' | |
uses: ./.github/workflows/run-script-and-commit.yml | |
with: | |
script_call: 'make tools update-changelog-unreleased-section' | |
file_to_commit: 'CHANGELOG.md' | |
commit_message: ${{ github.event_name == 'workflow_dispatch' && format('{0}{1}', 'chore:',' Updates CHANGELOG.md (Manual Trigger)') || format('{0}{1}{2}{3}', 'chore:', ' Updates CHANGELOG.md for ', '#', github.event.pull_request.number) }} | |
secrets: | |
apix_bot_pat: ${{ secrets.APIX_BOT_PAT }} | |
remote: https://svc-apix-bot:${{ secrets.APIX_BOT_PAT }}@github.com/${{ github.repository }} | |
gpg_private_key: ${{ secrets.APIX_BOT_GPG_PRIVATE_KEY }} | |
passphrase: ${{ secrets.APIX_BOT_PASSPHRASE }} | |
slack-notification: | |
needs: [generate-and-update-changelog] | |
if: ${{ !cancelled() && needs.generate-and-update-changelog.result == 'failure' }} | |
runs-on: ubuntu-latest | |
permissions: {} | |
steps: | |
- name: Send Slack message | |
id: slack | |
uses: slackapi/slack-github-action@37ebaef184d7626c5f204ab8d3baff4262dd30f0 | |
with: | |
payload: | | |
{ | |
"text": "Automatic Changelog update failed", | |
"blocks": [ | |
{ | |
"type": "section", | |
"text": { | |
"type": "mrkdwn", | |
"text": "*Automatic Changelog update failed* ${{ secrets.SLACK_ONCALL_TAG }} . <${{github.server_url}}/${{github.repository}}/actions/runs/${{github.run_id}}|Failed action >" | |
} | |
} | |
] | |
} | |
env: | |
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }} | |
SLACK_WEBHOOK_TYPE: INCOMING_WEBHOOK |