v2025 - update member create description, add 201 response sample with error … #53
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: Update | ||
| on: | ||
| pull_request: | ||
| types: [closed] | ||
| workflow_dispatch: | ||
| inputs: | ||
| version_level: | ||
| description: "Bump version" | ||
| required: true | ||
| default: "patch" | ||
| type: choice | ||
| options: | ||
| - minor | ||
| - patch | ||
| jobs: | ||
| Update: | ||
| runs-on: ubuntu-latest | ||
| if: ${{ github.event.pull_request.merged }} == true && ${{ github.ref }} == 'refs/heads/master' | ||
|
Check warning on line 20 in .github/workflows/update.yml
|
||
| 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@v41 | ||
| 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 == '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 }}","commit_sha":"${{ github.sha }}"}' | ||
| - 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 }}","commit_sha":"${{ github.sha }}"}' | ||
| - 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 }} | ||