From 4ab28b790c02ec70165b827e82aeccbb59f7d713 Mon Sep 17 00:00:00 2001 From: Akanksha Acharya Date: Thu, 12 May 2022 15:56:39 +0530 Subject: [PATCH 1/3] adding manual workflow --- .github/workflows/manual-sdk-generation.yml | 44 +++++++++++++++++++++ 1 file changed, 44 insertions(+) create mode 100644 .github/workflows/manual-sdk-generation.yml diff --git a/.github/workflows/manual-sdk-generation.yml b/.github/workflows/manual-sdk-generation.yml new file mode 100644 index 0000000..b4a4f24 --- /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 From 9702493093d6a2ca304a5e19ec8b0e33dfd4c241 Mon Sep 17 00:00:00 2001 From: Akanksha Acharya Date: Fri, 13 May 2022 12:25:52 +0530 Subject: [PATCH 2/3] fix --- .github/workflows/manual-sdk-generation.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/manual-sdk-generation.yml b/.github/workflows/manual-sdk-generation.yml index b4a4f24..26f5b62 100644 --- a/.github/workflows/manual-sdk-generation.yml +++ b/.github/workflows/manual-sdk-generation.yml @@ -35,7 +35,7 @@ jobs: uses: actions/checkout@v2 with: repository: ${{ env.GITHUB_SCHEMA_SDKS_REPO }} - ref: ${{github.event.inputs.branch}} + ref: "${{github.event.inputs.branch}}" path: sdks fetch-depth: 0 token: ${{ env.USER_API_KEY }} From 0cc649510c72e68099da176423ef2c19a83ac159 Mon Sep 17 00:00:00 2001 From: Akanksha Acharya Date: Mon, 16 May 2022 10:42:58 +0530 Subject: [PATCH 3/3] empty commit --- proto/fds/protobuf/stach/v3/Views.proto | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 +}