Am Facing issue to deploy yaml in git hub actions please help, could you some one tell where i can change
If you see the location you provided is wrong…may be base pth is appended twice…correct the same
Cheers
could you please provide script files
name: Development workflow
on:
push:
branches:
- dev/CICDtest
Here the environment variable is declared in workflow level
env:
Replace with your Orchestrator Values
PROJECT_NAME: CICDtest
PROJECT_FOLDER: Pipelines
ORCH_URL: https://cloud.uipath.com/
ORCH_TENANT: DefaultTenant
ORCH_CLIENT_ID: ${{ secrets.UIPATHCLIENTID }}
ORCH_USER_KEY: ${{ secrets.UIPATHUSERKEY }}
ORCH_ACC_NAME: kpiyhzenbl
CLI_URL: https://uipath.visualstudio.com/Public.Feeds/_artifacts/feed/UiPath-Official/NuGet/UiPath.CLI.Windows/overview/22.10.8432.18709
jobs:
print-details:
runs-on: ubuntu-latest
steps:
- name: echo-default-env-variables
run: |
echo “Home: ${HOME}”
echo “GITHUB_WORKFLOW: ${GITHUB_WORKFLOW}”
echo “GITHUB_ACTIONS: ${GITHUB_ACTIONS}”
echo “GITHUB_ACTOR: ${GITHUB_ACTOR}”
echo “GITHUB_REPOSITORY: ${GITHUB_REPOSITORY}”
echo “GITHUB_EVENT_NAME: ${GITHUB_EVENT_NAME}”
echo “GITHUB_WORKSPACE: ${GITHUB_WORKSPACE}”
echo “GITHUB_SHA: ${GITHUB_SHA}”
echo “GITHUB_REF: ${GITHUB_REF}”
cleaner:
runs-on: ubuntu-latest
steps:
- name: Runner workspace path
run: |
echo “Cleaning up previous run”
rm -rf “${{ github.workspace }}”
build-UiPath-nuget-package:
# You should be able to run on windows 2019 or windows latest
needs: cleaner
runs-on: windows-latest
steps:
- name: Check out repository code
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
uses: actions/checkout@v2
- name: Build Nuget Package
shell: pwsh
run: ${{ github.workspace }}\scripts\UiPathPack.ps1 ${{ github.workspace }}\project.json -destination_folder ${{ github.workspace }}\package
- name: Upload UiPath Artifacts
uses: actions/upload-artifact@v2
with:
name: Artifacts
path: |
package/.
scripts/*.ps1
publish-UiPath-nuget-package:
needs: build-UiPath-nuget-package
runs-on: windows-latest
steps:
- name: Download UiPath Artifacts
uses: actions/download-artifact@v2
with:
name: Artifacts
- name: Publish Nuget Package to DEV
shell: pwsh
run: ${{ github.workspace }}\scripts\UiPathDeploy.ps1 ${{ github.workspace }}\package ${{env.ORCH_URL}} ${{env.ORCH_TENANT}} -UserKey ${{env.ORCH_USER_KEY}} -account_name ${{env.ORCH_ACC_NAME}}
(GitHub - NALASHAA-RPA/CICDtest: CICDtest)
could u please check github also am eagrly waiting your replay
Please try this
run: ${{github.workspace}}\scripts\UiPathPack.ps1 project.json - destination_folder ${{github.workspace}}\package
Cheerd
CHNAGED EVERYTHINK BUT STILL AM GETTING ERROR
pLEASE CHECK LINE NO 37
137/20/2024 1:58:11 AM UiPath CLI does not exist in this folder. Attempting to download it…
147/20/2024 1:58:24 AM UiPath CLI is downloaded and extracted in folder D:\a\CICDtest\CICDtest\scripts\uipathcli\23.10.8753.32995
157/20/2024 1:58:24 AM -----------------------------------------------------------------------------
167/20/2024 1:58:24 AM uipcli location : D:\a\CICDtest\CICDtest\scripts\uipathcli\23.10.8753.32995\tools\uipcli.exe
177/20/2024 1:58:24 AM Executing D:\a\CICDtest\CICDtest\scripts\uipathcli\23.10.8753.32995\tools\uipcli.exe package pack “D:\a\CICDtest\CICDtest\project.json” --output “D:\a\CICDtest\CICDtest\package”
187/20/2024 1:58:24 AM -----------------------------------------------------------------------------
19uipcli: Data collection is enabled. For more information, please visit Test Suite - UiPath CLI
20System.IO.IOException: The filename, directory name, or volume label syntax is incorrect. : ‘D:\a\CICDtest\CICDtest"D:\a\CICDtest\CICDtest\project.json"’
21 at System.IO.FileSystem.GetAttributes(String fullPath)
22 at System.IO.File.GetAttributes(String path)
23 at UiPath.CommandLine.Utils.PathUtil.GetPaths(String filePath, String fileEnding, String invalidPathMessage)
24 at UiPath.CommandLine.Utils.PathUtil.GetProjectJsonPaths(String projectPath)
25 at UiPath.CommandLine.Core.Arguments.ProjectSpecificOptionsExtension.GetProjectJsonPaths(String projectPath)
26 at UiPath.CommandLine.Core.Arguments.ProjectSpecificOptionsExtension.GetProjectNames(ProjectSpecificOptions options)
27 at UiPath.CommandLine.Services.Impl.PackService.GetTelemetryData(PackOptions options)
28 at UiPath.CommandLine.Services.Impl.ServiceBase`1.GetTelemetryData(IOptions options)
29 at UiPath.CommandLine.Services.Impl.OptionsParser.<>c__DisplayClass11_0.<b__0>d.MoveNext()
30— End of stack trace from previous location —
31 at UiPath.CommandLine.Services.Impl.OptionsParser.<>c__DisplayClass10_0.<b__0>d.MoveNext()
32— End of stack trace from previous location —
33 at UiPath.CommandLine.Services.Impl.OptionsParser.<>c__DisplayClass9_0.<b__0>d.MoveNext()
34— End of stack trace from previous location —
35 at UiPath.CommandLine.Services.Impl.OptionsParser.RunOptions(String args, Func`3 notParsedFunc)
367/20/2024 1:58:36 AM Unable to Pack project. Exit code 1
37Error: Process completed with exit code 1.
Upload UiPath Artifacts
0s
Post Check out repository code
3s
1Post job cleanup.
2"C:\Program Files\Git\bin\git.exe" version
3git version 2.45.2.windows.1
4Temporarily overriding HOME=‘D:\a_temp\a0bec9d7-169e-4364-9c57-063396b9f8de’ before making global git config changes
5Adding repository directory to the temporary git global config as a safe directory
6"C:\Program Files\Git\bin\git.exe" config --global --add safe.directory D:\a\CICDtest\CICDtest
7"C:\Program Files\Git\bin\git.exe" config --local --name-only --get-regexp core.sshCommand
8"C:\Program Files\Git\bin\git.exe" submodule foreach --recursive “sh -c "git config --local --name-only --get-regexp ‘core.sshCommand’ && git config --local --unset-all ‘core.sshCommand’ || :"”
9"C:\Program Files\Git\bin\git.exe" config --local --name-only --get-regexp http.https://github.com/.extraheader
10http.https://github.com/.extraheader
11"C:\Program Files\Git\bin\git.exe" config --local --unset-all http.https://github.com/.extraheader
12"C:\Program Files\Git\bin\git.exe" submodule foreach --recursive “sh -c "git config --local --name-only --get-regexp ‘http.https://github.com/.extraheader’ && git config --local --unset-all ‘http.https://github.com/.extraheader’ || :"”
Complete job
0s
Hi ANil its also not working
but its work locally to some other systems i think may folder permisson could u please check on same and if any one please provide online support i sbest
thanks in advance
I just tested another system the deployment is successful but other system am not able to done for same
The deployment would be to or hestrator itsef…do you mean you tried another environment to run cli and it worked?
Cheers
still am facing issue could u please tell me how to change the published location in script could u provide more info its better help for me
The issue looks like you are trying to run a windows based project but it is considered as windows legacy …can you check the same…this typically happens if yhe tobot version is low
Cheers
Could you give me some steps how can i do that
Try to delete the package from orchestrator and republish and check
To confirm issue first try to publish the project manually and check if it is identified as windows or not…
Then check the UiPath pack is latest or not…if not windows project publish might not be there
Cheers





