diff --git a/.github/workflows/uipath-ci.yml b/.github/workflows/uipath-ci.yml index 09c44d7..597f699 100644 --- a/.github/workflows/uipath-ci.yml +++ b/.github/workflows/uipath-ci.yml @@ -25,10 +25,10 @@ jobs: runs-on: windows-latest steps: # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it - - uses: actions/checkout@v4 + - uses: actions/checkout@v6 # The UiPath CLI is installed on Runner - - uses: Mikael-RnD/setup-uipath@v2 + - run: dotnet tool install UiPath.CLI.Windows --global # Run workflow analysis on and pack UiPath projects - id: pack @@ -45,7 +45,7 @@ jobs: releaseNotes: 'Initial release' # Upload packages as build artifacts to be handled by deploy job - - uses: actions/upload-artifact@v4 + - uses: actions/upload-artifact@v6 with: name: pack-artifact path: ${{ steps.pack.outputs.packagesPath }} @@ -56,10 +56,10 @@ jobs: runs-on: windows-latest steps: # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it - - uses: actions/checkout@v4 + - uses: actions/checkout@v6 # The UiPath CLI is installed on Runner - - uses: Mikael-RnD/setup-uipath@v2 + - run: dotnet tool install UiPath.CLI.Windows --global # Run workflow analysis on and pack UiPath projects - id: pack @@ -79,7 +79,7 @@ jobs: releaseNotes: 'Initial release with file input' # Upload packages as build artifacts to be handled by deploy job - - uses: actions/upload-artifact@v4 + - uses: actions/upload-artifact@v6 with: name: pack-with-file-input path: ${{ steps.pack.outputs.packagesPath }} @@ -90,13 +90,12 @@ jobs: runs-on: ubuntu-latest steps: # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it - - uses: actions/checkout@v4 + - uses: actions/checkout@v6 - - name: uipath-setup - uses: Mikael-RnD/setup-uipath@v2 + - run: dotnet tool install UiPath.CLI.Linux --global - name: setup-dotnet - uses: actions/setup-dotnet@v4 + uses: actions/setup-dotnet@v5 with: dotnet-version: | 8.0.x diff --git a/action.yml b/action.yml index 0a4e319..be0cdfd 100644 --- a/action.yml +++ b/action.yml @@ -36,6 +36,10 @@ inputs: projectUrl: description: 'Project URL for the generated package. Usually associated with the Automation Hub project. If not provided, the repository URL will be used' required: false + traceLevel: + description: 'Trace level for the packing process. Possible values: Verbose, Information, Warning, Error' + default: "Information" + required: false outputs: packagesPath: description: 'Folder containing the generated packages' @@ -89,10 +93,10 @@ runs: -l en-US \ --repositoryUrl "${{ steps.set-urls.outputs.repoUrl }}" \ --repositoryCommit "${{ github.sha }}" \ - --repositoryBranch "${{ github.ref_name }}" \ + --repositoryBranch "${{ github.head_ref || github.ref_name }}" \ --repositoryType git \ --projectUrl "${{ steps.set-urls.outputs.projectUrl }}" \ - --traceLevel "Warning" + --traceLevel "${{ inputs.traceLevel }}" echo "::endgroup::"