diff --git a/.github/workflows/manual-sdk-generation.yml b/.github/workflows/manual-sdk-generation.yml new file mode 100644 index 0000000..26f5b62 --- /dev/null +++ b/.github/workflows/manual-sdk-generation.yml @@ -0,0 +1,44 @@ +name: Generate SDKs manually and raise PR + +env: + USER_API_KEY: ${{ secrets.USER_API_KEY }} + USER_EMAIL: ${{ secrets.USER_EMAIL }} + USER: ${{ secrets.USER }} + SCHEMA_DIRECTORY: proto # Location of the Google ProtoBuf schema. + GITHUB_SCHEMA_SDKS_REPO: factset/stachschema-sdks + +on: + workflow_dispatch: + inputs: + branch: + description: 'stachschema-sdks repo branch name' + required: true + +jobs: + generate: + runs-on: ubuntu-latest + + steps: + - name: Install Hub + run: | + sudo snap install hub --classic + + - name: Check out ${{ github.repository }} + uses: actions/checkout@v2 + with: + repository: ${{ github.repository }} + path: ${{ github.event.repository.name }} + fetch-depth: 0 + ref: "${{ github.head_ref }}" + + - name: Check out ${{ env.GITHUB_SCHEMA_SDKS_REPO }} repository + uses: actions/checkout@v2 + with: + repository: ${{ env.GITHUB_SCHEMA_SDKS_REPO }} + ref: "${{github.event.inputs.branch}}" + path: sdks + fetch-depth: 0 + token: ${{ env.USER_API_KEY }} + + - name: Raise or update SDKs pull request + run: ${{ github.event.repository.name }}/.github/scripts/raise-pull-request.sh diff --git a/proto/fds/protobuf/stach/v3/Views.proto b/proto/fds/protobuf/stach/v3/Views.proto index 7fd7c05..de335a8 100644 --- a/proto/fds/protobuf/stach/v3/Views.proto +++ b/proto/fds/protobuf/stach/v3/Views.proto @@ -47,4 +47,4 @@ message Views { Required. */ repeated View views = 1; -} \ No newline at end of file +}