Query Actions#
Query actions retrieve Ansys SCADE installation directories and Python environments.
Get SCADE installation directory#
The get-scade-dir action takes an Ansys SCADE version as an input and returns its installation directory.
| Input | Description | Required | Default | 
|---|---|---|---|
| scade-version | SCADE version in a format like  | True | 
| Output | Description | 
|---|---|
| scade-directory | Installation directory of the requested version. | 
Example#
Get SCADE installation directory basic example
get-scade-dir:
  name: "Get SCADE installation directory basic example"
  runs-on: [self-hosted, 'SCADE']
  steps:
    - name: "Get SCADE directory"
      uses: ansys/scade-actions/get-scade-dir@v2.2
      with:
        scade-version: "23.2"
Get corresponding Python environment#
The get-scade-python action takes an Ansys SCADE installation directory as an input and returns the name and path to the corresponding Python installation.
| Input | Description | Required | Default | 
|---|---|---|---|
| scade-dir | Ansys SCADE installation directory. For example,  | True | 
| Output | Description | 
|---|---|
| python-name | Name of the directory containing the  | 
| python-dir | Directory containing the  | 
| python-version | Version of the  | 
Example#
Get SCADE Python version basic example
get-scade-python:
  name: "Get SCADE Python version basic example"
  runs-on: [self-hosted, 'SCADE']
  steps:
    - name: "Get SCADE Python"
      uses: ansys/scade-actions/get-scade-python@v2.2
      with:
        scade-dir: 'C:\Program Files\Ansys Inc\v232\SCADE'
 
    