-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* SWI-3338 Update SDK for GA * update beta regex to normal release regex * update version * update README to include generate command * update deploy workflow to update gem version before release * test wf * update test * remove test * revert pre-release regex * update call state test
- Loading branch information
Showing
7 changed files
with
34 additions
and
27 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,28 +8,17 @@ on: | |
jobs: | ||
update-sdk: | ||
name: Update SDK if Necessary | ||
runs-on: ${{ fromJSON(vars.SWI_GLORG_UBUNTU_2204) }} | ||
runs-on: ubuntu-latest | ||
outputs: | ||
generate: ${{ steps.compare.outputs.generate }} | ||
permissions: | ||
id-token: write | ||
contents: write | ||
steps: | ||
- name: Get Github and Jira Tokens from Vault | ||
uses: Bandwidth/vault-provider-action@v1 | ||
with: | ||
secrets: | | ||
workloads/prod/software_infra::secrets:dx-github-token:dx-github-token@1::DX_GITHUB_TOKEN | ||
workloads/prod/software_infra::secrets:SDLC-Enforcer-Prod:JIRA_TOKEN@9::JIRA_TOKEN | ||
workloads/prod/software_infra::secrets:SDLC-Enforcer-Prod:JIRA_USERNAME@9::JIRA_USERNAME | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
|
||
- name: Combine Product Specs | ||
uses: Bandwidth/[email protected] | ||
with: | ||
token: ${{ env.DX_GITHUB_TOKEN }} | ||
token: ${{ secrets.DX_GITHUB_TOKEN }} | ||
|
||
- name: Determine if a New SDK is Needed | ||
id: compare | ||
|
@@ -55,7 +44,7 @@ jobs: | |
"name": "Story" | ||
}, | ||
"customfield_12108": "$LANGUAGE SDK is ready for release. Tests are created/updated if need be.", | ||
"customfield_10205": "SWI-1876", | ||
"customfield_10205": "$EPIC", | ||
"components": [{ | ||
"name": "Client SDKs" | ||
}] | ||
|
@@ -66,14 +55,17 @@ jobs: | |
echo "jira-key=$JIRA_KEY" >> $GITHUB_OUTPUT | ||
env: | ||
LANGUAGE: Ruby | ||
EPIC: SWI-1876 | ||
JIRA_USERNAME: ${{ secrets.JIRA_USERNAME }} | ||
JIRA_TOKEN: ${{ secrets.JIRA_TOKEN }} | ||
|
||
- name: Build SDK | ||
id: build | ||
if: ${{ startsWith(steps.jira.outputs.jira-key, 'SWI') }} | ||
uses: Bandwidth/[email protected] | ||
with: | ||
branch-name: ${{ steps.jira.outputs.jira-key }} | ||
token: ${{ env.DX_GITHUB_TOKEN }} | ||
token: ${{ secrets.DX_GITHUB_TOKEN }} | ||
openapi-generator-version: 7.0.0 | ||
language: ruby | ||
config: ./openapi-config.yml | ||
|
@@ -100,4 +92,17 @@ jobs: | |
run: | | ||
gh pr create -B main -H Bandwidth:${{ steps.jira.outputs.jira-key }} -t '${{ steps.jira.outputs.jira-key }} Update SDK Based on Recent Spec Changes' -b 'Auto-generated by Update SDK Workflow' | ||
env: | ||
GITHUB_TOKEN: ${{ env.DX_GITHUB_TOKEN }} | ||
GITHUB_TOKEN: ${{ secrets.DX_GITHUB_TOKEN }} | ||
|
||
notify-for-failures: | ||
name: Notify for Failures | ||
needs: [update-sdk] | ||
if: failure() | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Notify Slack of Failures | ||
uses: Bandwidth/[email protected] | ||
with: | ||
job-status: failure | ||
slack-bot-token: ${{ secrets.SLACK_BOT_TOKEN }} | ||
slack-channel: ${{ secrets.SLACK_CHANNEL }} |
This file contains 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
This file contains 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
This file was deleted.
Oops, something went wrong.
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,5 +11,5 @@ | |
=end | ||
|
||
module Bandwidth | ||
VERSION = ENV.fetch('GEM_VERSION') | ||
VERSION = '11.0.0' | ||
end |
This file contains 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