Skip to content

Commit 44c18e5

Browse files
AndreiPaulauCopilot
andcommitted
Refactor GitHub Actions workflow to improve readability by formatting PR creation commands
Co-authored-by: Copilot <copilot@github.com>
1 parent e912baa commit 44c18e5

1 file changed

Lines changed: 30 additions & 5 deletions

File tree

.github/workflows/make-prs-for-client-repos.yml

Lines changed: 30 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -27,38 +27,63 @@ jobs:
2727
runs-on: ubuntu-latest
2828
steps:
2929
- name: Create PR for Python WebClient Repo
30-
run: gh pr create --base ${{ inputs.target_branch }} --head ${{ inputs.source_branch }} --title '[GitHub Actions] Merge ${{ inputs.source_branch }} -> ${{ inputs.target_branch }}' --label OpenAPI --body 'Autogenerated Pull Request triggered by Github Actions in OpenAPI repository' --repo regulaforensics/FaceSDK-web-python-client
30+
run: |
31+
gh pr create --base ${{ inputs.target_branch }} \
32+
--head ${{ inputs.source_branch }} \
33+
--title '[GitHub Actions] Merge ${{ inputs.source_branch }} -> ${{ inputs.target_branch }}' \
34+
--label OpenAPI --body 'Autogenerated Pull Request triggered by Github Actions in OpenAPI repository' \
35+
--repo regulaforensics/FaceSDK-web-python-client
3136
env:
3237
GITHUB_TOKEN: ${{ secrets.REGULA_GITHUB_PUSH_TOKEN }}
3338

3439
java-webclient-pr:
3540
runs-on: ubuntu-latest
3641
steps:
3742
- name: Create PR for Java WebClient Repo
38-
run: gh pr create --base ${{ inputs.target_branch }} --head ${{ inputs.source_branch }} --title '[GitHub Actions] Merge ${{ inputs.source_branch }} -> ${{ inputs.target_branch }}' --label OpenAPI --body 'Autogenerated Pull Request triggered by Github Actions in OpenAPI repository' --repo regulaforensics/FaceSDK-web-java-client
43+
run: |
44+
gh pr create --base ${{ inputs.target_branch }} \
45+
--head ${{ inputs.source_branch }} \
46+
--title '[GitHub Actions] Merge ${{ inputs.source_branch }} -> ${{ inputs.target_branch }}' \
47+
--label OpenAPI --body 'Autogenerated Pull Request triggered by Github Actions in OpenAPI repository' \
48+
--repo regulaforensics/FaceSDK-web-java-client
3949
env:
4050
GITHUB_TOKEN: ${{ secrets.REGULA_GITHUB_PUSH_TOKEN }}
4151

4252
js-webclient-pr:
4353
runs-on: ubuntu-latest
4454
steps:
4555
- name: Create PR for JS WebClient Repo
46-
run: gh pr create --base ${{ inputs.target_branch }} --head ${{ inputs.source_branch }} --title '[GitHub Actions] Merge ${{ inputs.source_branch }} -> ${{ inputs.target_branch }}' --label OpenAPI --body 'Autogenerated Pull Request triggered by Github Actions in OpenAPI repository' --repo regulaforensics/FaceSDK-web-js-client
56+
run: |
57+
gh pr create --base ${{ inputs.target_branch }} \
58+
--head ${{ inputs.source_branch }} \
59+
--title '[GitHub Actions] Merge ${{ inputs.source_branch }} -> ${{ inputs.target_branch }}' \
60+
--label OpenAPI --body 'Autogenerated Pull Request triggered by Github Actions in OpenAPI repository' \
61+
--repo regulaforensics/FaceSDK-web-js-client
4762
env:
4863
GITHUB_TOKEN: ${{ secrets.REGULA_GITHUB_PUSH_TOKEN }}
4964

5065
csharp-webclient-pr:
5166
runs-on: ubuntu-latest
5267
steps:
5368
- name: Create PR for CSharp WebClient Repo
54-
run: gh pr create --base ${{ inputs.target_branch }} --head ${{ inputs.source_branch }} --title '[GitHub Actions] Merge ${{ inputs.source_branch }} -> ${{ inputs.target_branch }}' --label OpenAPI --body 'Autogenerated Pull Request triggered by Github Actions in OpenAPI repository' --repo regulaforensics/FaceSDK-web-csharp-client
69+
run: |
70+
gh pr create --base ${{ inputs.target_branch }} \
71+
--head ${{ inputs.source_branch }} \
72+
--title '[GitHub Actions] Merge ${{ inputs.source_branch }} -> ${{ inputs.target_branch }}' \
73+
--label OpenAPI --body 'Autogenerated Pull Request triggered by Github Actions in OpenAPI repository' \
74+
--repo regulaforensics/FaceSDK-web-csharp-client
5575
env:
5676
GITHUB_TOKEN: ${{ secrets.REGULA_GITHUB_PUSH_TOKEN }}
5777

5878
openapi-pr:
5979
runs-on: ubuntu-latest
6080
steps:
6181
- name: Create PR for OpenAPI Repo
62-
run: gh pr create --base ${{ inputs.target_branch }} --head ${{ inputs.source_branch }} --title '[GitHub Actions] Merge ${{ inputs.source_branch }} -> ${{ inputs.target_branch }}' --label OpenAPI --body 'Autogenerated Pull Request triggered by Github Actions in OpenAPI repository' --repo regulaforensics/FaceSDK-web-openapi
82+
run: |
83+
gh pr create --base ${{ inputs.target_branch }} \
84+
--head ${{ inputs.source_branch }} \
85+
--title '[GitHub Actions] Merge ${{ inputs.source_branch }} -> ${{ inputs.target_branch }}' \
86+
--label OpenAPI --body 'Autogenerated Pull Request triggered by Github Actions in OpenAPI repository' \
87+
--repo regulaforensics/FaceSDK-web-openapi
6388
env:
6489
GITHUB_TOKEN: ${{ secrets.REGULA_GITHUB_PUSH_TOKEN }}

0 commit comments

Comments
 (0)