Skip to content

Commit 9cfd83b

Browse files
PProfiziBClappe
andauthored
Update update_operators.yml to allow automatic sync (#1312)
* Add distinct_id input to update_operators.yml * update_operators.yml: create PRs with token PYANSYS_CI_BOT_TOKEN * update_operators.yml: create PRs with token CI_TOKEN * update_operators.yml: create PRs with token CI_TOKEN * update_operators.yml: create PRs with GH App * update_operators.yml: label PR as server-sync * update_operators.yml: switch to tibdex/github-app-token@v2 * update_operators.yml: switch back to PAT * update_operators.yml: Add reviewers and assignees * update_operators.yml: Add reviewers and assignees * Apply suggestions from code review Co-authored-by: ClappeB-Ansys <[email protected]> --------- Co-authored-by: ClappeB-Ansys <[email protected]>
1 parent 6f8e75a commit 9cfd83b

File tree

1 file changed

+22
-1
lines changed

1 file changed

+22
-1
lines changed

.github/workflows/update_operators.yml

Lines changed: 22 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,12 @@ on:
44
# Can be called manually or remotely
55
workflow_dispatch:
66
inputs:
7+
distinct_id:
8+
description: "ID to give the job when run via dpf-standalone repo"
9+
required: false
10+
type: string
11+
default: ""
12+
713
ANSYS_VERSION:
814
description: "ANSYS version"
915
required: false
@@ -27,6 +33,9 @@ jobs:
2733
runs-on: windows-latest
2834

2935
steps:
36+
- name: echo distinct ID ${{ github.event.inputs.distinct_id }}
37+
run: echo ${{ github.event.inputs.distinct_id }}
38+
3039
- uses: actions/checkout@v3
3140

3241
- name: Setup Python
@@ -112,6 +121,12 @@ jobs:
112121
run: |
113122
git status
114123
124+
# - uses: tibdex/github-app-token@v2 # To use once GH App is set at ansys org level
125+
# id: generate-token
126+
# with:
127+
# app_id: ${{ secrets.CI_APP_ID }}
128+
# private_key: ${{ secrets.CI_APP_TOKEN }}
129+
115130
- name: "Create Pull Request"
116131
uses: peter-evans/create-pull-request@v4
117132
with:
@@ -126,7 +141,13 @@ jobs:
126141
title: Update generated code for DPF ${{ github.event.inputs.ANSYS_VERSION || '242' }}${{ github.event.inputs.standalone_branch_suffix || '' }} on ${{ github.ref_name }}
127142
body: An update of generated code has been triggered either manually or by an update in the dpf-standalone repository.
128143
branch: maint/update_code_for_${{ github.event.inputs.ANSYS_VERSION || '242' }}${{ github.event.inputs.standalone_branch_suffix || '' }}_on_${{ github.ref_name }}
129-
labels: maintenance
144+
labels: server-sync
145+
# token: ${{ steps.generate-token.outputs.token }}
146+
token: ${{ secrets.CI_PAT }}
147+
committer: PProfizi <[email protected]>
148+
author: PProfizi <[email protected]>
149+
reviewers: ansys/dpf_integration_proxies
150+
assignees: ansys/dpf_integration_proxies
130151

131152
- name: "Kill all servers"
132153
uses: ansys/pydpf-actions/[email protected]

0 commit comments

Comments
 (0)