Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update generated code for DPF 242_improve_workflow on ci/distinct_id #1313

21 changes: 20 additions & 1 deletion .github/workflows/update_operators.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ on:
# Can be called manually or remotely
workflow_dispatch:
inputs:
distinct_id:

ANSYS_VERSION:
description: "ANSYS version"
required: false
Expand All @@ -14,6 +16,8 @@ on:
required: false
type: string
default: ''
secrets:
token:

env:
PACKAGE_NAME: ansys-dpf-core
Expand All @@ -27,6 +31,9 @@ jobs:
runs-on: windows-latest

steps:
- name: echo distinct ID ${{ github.event.inputs.distinct_id }}
run: echo ${{ github.event.inputs.distinct_id }}

- uses: actions/checkout@v3

- name: Setup Python
Expand Down Expand Up @@ -112,6 +119,12 @@ jobs:
run: |
git status

# - uses: tibdex/github-app-token@v2 # To use once GH App is set at ansys org level
# id: generate-token
# with:
# app_id: ${{ secrets.CI_APP_ID }}
# private_key: ${{ secrets.CI_APP_TOKEN }}

- name: "Create Pull Request"
uses: peter-evans/create-pull-request@v4
with:
Expand All @@ -126,7 +139,13 @@ jobs:
title: Update generated code for DPF ${{ github.event.inputs.ANSYS_VERSION || '242' }}${{ github.event.inputs.standalone_branch_suffix || '' }} on ${{ github.ref_name }}
body: An update of generated code has been triggered either manually or by an update in the dpf-standalone repository.
branch: maint/update_code_for_${{ github.event.inputs.ANSYS_VERSION || '242' }}${{ github.event.inputs.standalone_branch_suffix || '' }}_on_${{ github.ref_name }}
labels: maintenance
labels: server-sync
# token: ${{ steps.generate-token.outputs.token }}
token: ${{ secrets.CI_PAT }}
committer: PProfizi <[email protected]>
author: PProfizi <[email protected]>
reviewers: ansys/dpf_integration_proxies
assignees: ansys/dpf_integration_proxies

- name: "Kill all servers"
uses: ansys/pydpf-actions/[email protected]
Expand Down
3 changes: 2 additions & 1 deletion src/ansys/grpc/dpf/__init__.py
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
from ansys.grpc.dpf._version import __version__
from ansys.grpc.dpf._version import __version__
# test
2 changes: 1 addition & 1 deletion src/ansys/grpc/dpf/_version.py
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
"""ansys-grpc-dpf python protocol version"""
__version__ = '0.9.0dev0' # major.minor.patch
__version__ = '0.9.0dev1' # major.minor.patch
Loading