Skip to content

Commit

Permalink
SP-17253 support develop -> stable -> master development approach
Browse files Browse the repository at this point in the history
  • Loading branch information
KirylKovaliov committed Jul 29, 2024
1 parent 4b4c885 commit e08cac1
Show file tree
Hide file tree
Showing 4 changed files with 27 additions and 47 deletions.
33 changes: 0 additions & 33 deletions .github/workflows/release-clients.yml

This file was deleted.

33 changes: 21 additions & 12 deletions .github/workflows/update-clients.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,15 +13,18 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout Specification Repo
uses: actions/checkout@v2
uses: actions/checkout@v4
with:
path: 'DocumentReader-web-openapi'
ref: 'develop'
- name: Checkout JS Client Repo
uses: actions/checkout@v2
uses: actions/checkout@v4
with:
repository: 'regulaforensics/DocumentReader-web-js-client'
token: ${{ secrets.REGULA_GITHUB_PUSH_TOKEN }}
path: 'js-client'
ref: 'develop'

- name: Update Model According To Specification
working-directory: js-client
run: |
Expand All @@ -36,7 +39,7 @@ jobs:
git add --all
git commit -m "${{ github.event.inputs.title }}" -a
git push --set-upstream origin ${GITHUB_SHA::8}
gh pr create --fill --draft
gh pr create --fill --draft --base develop
env:
GITHUB_TOKEN: ${{ secrets.REGULA_GITHUB_PUSH_TOKEN }}

Expand All @@ -49,15 +52,17 @@ jobs:
java-version: 11
java-package: jdk
- name: Checkout Specification Repo
uses: actions/checkout@v2
uses: actions/checkout@v4
with:
path: 'DocumentReader-web-openapi'
ref: 'develop'
- name: Checkout Java Client Repo
uses: actions/checkout@v2
uses: actions/checkout@v4
with:
repository: 'regulaforensics/DocumentReader-web-java-client'
token: ${{ secrets.REGULA_GITHUB_PUSH_TOKEN }}
path: 'java-client'
ref: 'develop'
- name: Update Model According To Specification
working-directory: java-client
run: |
Expand All @@ -71,23 +76,25 @@ jobs:
git add --all
git commit -m "${{ github.event.inputs.title }}" -a
git push --set-upstream origin ${GITHUB_SHA::8}
gh pr create --fill --draft
gh pr create --fill --draft --base develop
env:
GITHUB_TOKEN: ${{ secrets.REGULA_GITHUB_PUSH_TOKEN }}

update-python-client:
runs-on: ubuntu-latest
steps:
- name: Checkout Specification Repo
uses: actions/checkout@v2
uses: actions/checkout@v4
with:
path: 'DocumentReader-web-openapi'
ref: 'develop'
- name: Checkout Python Client Repo
uses: actions/checkout@v2
uses: actions/checkout@v4
with:
repository: 'regulaforensics/DocumentReader-web-python-client'
token: ${{ secrets.REGULA_GITHUB_PUSH_TOKEN }}
path: 'python-client'
ref: 'develop'
- name: Update Model According To Specification
working-directory: python-client
run: |
Expand All @@ -101,23 +108,25 @@ jobs:
git add --all
git commit -m "${{ github.event.inputs.title }}" -a
git push --set-upstream origin ${GITHUB_SHA::8}
gh pr create --fill --draft
gh pr create --fill --draft --base develop
env:
GITHUB_TOKEN: ${{ secrets.REGULA_GITHUB_PUSH_TOKEN }}

update-csharp-client:
runs-on: ubuntu-latest
steps:
- name: Checkout Specification Repo
uses: actions/checkout@v2
uses: actions/checkout@v4
with:
path: 'DocumentReader-web-openapi'
ref: 'develop'
- name: Checkout C# Client Repo
uses: actions/checkout@v2
uses: actions/checkout@v4
with:
repository: 'regulaforensics/DocumentReader-web-csharp-client'
token: ${{ secrets.REGULA_GITHUB_PUSH_TOKEN }}
path: 'csharp-client'
ref: 'develop'
- name: Update Model According To Specification
working-directory: csharp-client
run: |
Expand All @@ -132,6 +141,6 @@ jobs:
git add --all
git commit -m "${{ github.event.inputs.title }}" -a
git push --set-upstream origin ${GITHUB_SHA::8}
gh pr create --fill --draft
gh pr create --fill --draft --base develop
env:
GITHUB_TOKEN: ${{ secrets.REGULA_GITHUB_PUSH_TOKEN }}
6 changes: 4 additions & 2 deletions .github/workflows/validate-spec.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,14 @@ on:
pull_request:
branches:
- master
- develop
- stable

jobs:
validate-specification:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- uses: actions/setup-node@v1
with:
node-version: 14
Expand All @@ -21,4 +23,4 @@ jobs:
run: |
npm install -g @openapitools/openapi-generator-cli
openapi-generator-cli validate -i index.yml
2 changes: 2 additions & 0 deletions .github/workflows/verify-clients.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ on:
pull_request:
branches:
- master
- develop
- stable

jobs:
verify-python:
Expand Down

0 comments on commit e08cac1

Please sign in to comment.