Skip to content

Add missing fields to account number response #24

Add missing fields to account number response

Add missing fields to account number response #24

Workflow file for this run

name: Update
on:
pull_request:
types: [closed]
workflow_dispatch:
inputs:
version_level:
description: "Bump version"
required: true
default: "patch"
type: choice
options:
- major
- minor
- patch
jobs:
Update:
runs-on: ubuntu-latest
if: ${{ github.event.pull_request.merged }} == true && ${{ github.ref }} == 'refs/heads/master'
strategy:
matrix:
repo: ["mxenabled/mx-platform-csharp", "mxenabled/mx-platform-go", "mxenabled/mx-platform-java", "mxenabled/mx-platform-node", "mxenabled/mx-platform-python", "mxenabled/mx-platform-ruby"]
steps:
- uses: actions/checkout@v3
- name: Get openapi file
id: changed-files-specific
uses: tj-actions/changed-files@v35
with:
files: openapi/mx_platform_api.yml
- name: Generate access token
id: generate_token
uses: tibdex/github-app-token@v1
with:
app_id: ${{ secrets.PAPI_SDK_APP_ID }}
installation_id: ${{ secrets.PAPI_SDK_INSTALLATION_ID }}
private_key: ${{ secrets.PAPI_SDK_PRIVATE_KEY }}
- name: Update libraries
env:
LABEL: ${{ github.event.pull_request.labels[0].name }}
if: env.LABEL == 'major' || env.LABEL == 'minor' || env.LABEL == 'patch' && steps.changed-files-specific.outputs.any_changed == true
uses: peter-evans/repository-dispatch@v2
with:
token: ${{ steps.generate_token.outputs.token }}
repository: ${{ matrix.repo }}
event-type: generate_publish_release
client-payload: '{"version":"${{ env.LABEL }}"}'
- name: Slack notification
uses: ravsamhq/notify-slack-action@v2
if: always()
with:
status: ${{ job.status }}
token: ${{ secrets.GITHUB_TOKEN }}
notification_title: "{repo}: {workflow} workflow"
message_format: "{emoji} *{workflow}* {status_message} in <{repo_url}|{repo}>"
footer: "<{workflow_url}|View Workflow>"
notify_when: "failure"
env:
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}
Manual_Update:
runs-on: ubuntu-latest
if: ${{ github.event_name == 'workflow_dispatch' }}
strategy:
matrix:
repo: ["mxenabled/mx-platform-csharp", "mxenabled/mx-platform-go", "mxenabled/mx-platform-java", "mxenabled/mx-platform-node", "mxenabled/mx-platform-python", "mxenabled/mx-platform-ruby"]
steps:
- uses: actions/checkout@v3
- name: Generate access token
id: generate_token
uses: tibdex/github-app-token@v1
with:
app_id: ${{ secrets.PAPI_SDK_APP_ID }}
installation_id: ${{ secrets.PAPI_SDK_INSTALLATION_ID }}
private_key: ${{ secrets.PAPI_SDK_PRIVATE_KEY }}
- name: Update libraries
uses: peter-evans/repository-dispatch@v2
with:
token: ${{ steps.generate_token.outputs.token }}
repository: ${{ matrix.repo }}
event-type: generate_publish_release
client-payload: '{"version":"${{ github.event.inputs.version_level }}"}'
- name: Slack notification
uses: ravsamhq/notify-slack-action@v2
if: always()
with:
status: ${{ job.status }}
token: ${{ secrets.GITHUB_TOKEN }}
notification_title: "{repo}: {workflow} workflow"
message_format: "{emoji} *{workflow}* {status_message} in <{repo_url}|{repo}>"
footer: "<{workflow_url}|View Workflow>"
notify_when: "failure"
env:
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}