This action is intended to used in scenarios where you wish to install the uipathcli (not to be confused with UiPath CLI, which you can setup with Mikael-RnD/setup-uipath), what's up with the naming of these tools here UiPath?), to streamline working with various UiPath APIs directly from the command line.
The below sample runs a job where the repository is checked out to the runner, the setup-uipathcli actions is used and the uipath cli is used to list folders on the Orchestrator instance.
The action accepts inputs to configure the uipath CLI for your Orchestrator instance. The action will set the appropriate environment variables automatically. For the full list of environment variables used by the uipath, see the uipathcli readme.
For up-to-date list of inputs available for this action, please refer to the actions action.yml file.
uipathcli-sample-job:
steps:
- name: Checkout
id: checkout
uses: actions/checkout@v6
- name: Setup uipathcli
id: setup-uipathcli
uses: mikael-andersson91/setup-uipathcli@v2
with:
uipath-url: ${{ secrets.UIPATH_URL }}
client-id: ${{ secrets.CLIENT_ID }}
client-secret: ${{ secrets.CLIENT_SECRET }}
tenant: ${{ secrets.TENANT }}
organization: ${{ secrets.ORGANIZATION }}
- id: sample-uipath-command
run: |
uipath orchestrator folders get