diff --git a/.github/workflows/add-new-item-to-project.yml b/.github/workflows/add-new-item-to-project.yml index a517f42..d0412a4 100644 --- a/.github/workflows/add-new-item-to-project.yml +++ b/.github/workflows/add-new-item-to-project.yml @@ -28,7 +28,7 @@ jobs: add_new_issue_to_project: name: Add New Issue needs: get_item_number - uses: KinsonDigital/Infrastructure/.github/workflows/add-item-to-project.yml@v13.3.1 + uses: KinsonDigital/Infrastructure/.github/workflows/add-item-to-project.yml@v13.5.0 with: org-name: "${{ vars.ORGANIZATION_NAME }}" org-project-name: "${{ vars.ORG_PROJECT_NAME }}" diff --git a/.github/workflows/build-status-check.yml b/.github/workflows/build-status-check.yml index 7582abf..f50993b 100644 --- a/.github/workflows/build-status-check.yml +++ b/.github/workflows/build-status-check.yml @@ -10,12 +10,12 @@ on: jobs: build_project: name: ${{ vars.PROJECT_NAME }} Build Status Check - uses: KinsonDigital/Infrastructure/.github/workflows/build-csharp-project.yml@v13.3.1 + uses: KinsonDigital/Infrastructure/.github/workflows/build-csharp-project.yml@v13.5.0 with: project-name: ${{ vars.PROJECT_NAME }} build-config: Debug net-sdk-version: ${{ vars.NET_SDK_VERSION }} - checkout-ref: ${{ github.event.pull_request.head.ref }} checkout-repository: ${{ github.event.pull_request.head.repo.full_name }} + checkout-ref: ${{ github.event.pull_request.head.ref }} secrets: cicd-pat: ${{ secrets.CICD_TOKEN }} diff --git a/.github/workflows/prepare-release.yml b/.github/workflows/prepare-release.yml index 7e70f83..8894829 100644 --- a/.github/workflows/prepare-release.yml +++ b/.github/workflows/prepare-release.yml @@ -57,11 +57,10 @@ jobs: } - $prodVersionRegex = "v[0-9]+\.[0-9]+\.[0-9]+"; - $prevVersionRegex = "v[0-9]+\.[0-9]+\.[0-9]+-preview\.[0-9]+"; + $versionRegex = "v([1-9]\d*|0)\.([1-9]\d*|0)\.([1-9]\d*|0)(-preview\.([1-9]\d*))?"; # Verify that the version has valid syntax - if (($releaseVersion -match $prodVersionRegex) -or ($releaseVersion -match $prevVersionRegex)) { + if (($releaseVersion -match $versionRegex)) { Write-Host "::notice::The 'release-version' workflow input is valid."; } else { $versionSyntax = $releaseType == "production" ? "v#.#.#" : "v#.#.#-preview.#"; @@ -73,7 +72,7 @@ jobs: prepare_release: name: Prepare ${{ inputs.release-type }} Release Of ${{ vars.PROJECT_NAME }} needs: print_validate_workflow - uses: KinsonDigital/Infrastructure/.github/workflows/prepare-release.yml@v13.3.1 + uses: KinsonDigital/Infrastructure/.github/workflows/prepare-release.yml@v13.5.0 with: project-name: ${{ vars.PROJECT_NAME }} release-type: ${{ inputs.release-type }} diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index eb811c4..968c7f9 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -45,7 +45,7 @@ jobs: perform_release: name: Performing ${{ inputs.release-type }} Release of ${{ vars.PROJECT_NAME }} (${{ inputs.release-type == 'Production' && 'Release' || 'Debug' }}) needs: determine_release_notes_path - uses: KinsonDigital/Infrastructure/.github/workflows/dotnet-action-release.yml@v13.3.1 + uses: KinsonDigital/Infrastructure/.github/workflows/dotnet-action-release.yml@v13.5.0 with: project-name: "${{ vars.PROJECT_NAME }}" release-type: "${{ inputs.release-type }}" diff --git a/.github/workflows/sync-pr-to-issue.yml b/.github/workflows/sync-pr-to-issue.yml index c421093..5b6a41c 100644 --- a/.github/workflows/sync-pr-to-issue.yml +++ b/.github/workflows/sync-pr-to-issue.yml @@ -19,7 +19,7 @@ jobs: if: | github.event_name == 'pull_request_target' && !startsWith(github.head_ref, 'renovate/') - uses: KinsonDigital/Infrastructure/.github/workflows/initial-manual-sync.yml@v13.3.1 + uses: KinsonDigital/Infrastructure/.github/workflows/initial-manual-sync.yml@v13.5.0 with: issue-or-pr-number: ${{ github.event.pull_request.number }} sync-type: initial @@ -35,7 +35,7 @@ jobs: github.event_name == 'issue_comment' && github.event.issue.pull_request && github.event.issue.pull_request.url != null && contains(github.event.comment.body, '[run-sync]') - uses: KinsonDigital/Infrastructure/.github/workflows/initial-manual-sync.yml@v13.3.1 + uses: KinsonDigital/Infrastructure/.github/workflows/initial-manual-sync.yml@v13.5.0 with: issue-or-pr-number: ${{ github.event.issue.number }} sync-type: manual diff --git a/.github/workflows/sync-status-check.yml b/.github/workflows/sync-status-check.yml index f830755..c06a244 100644 --- a/.github/workflows/sync-status-check.yml +++ b/.github/workflows/sync-status-check.yml @@ -44,7 +44,7 @@ jobs: 5. PAT #> deno run ` - --allow-net ` + --allow-net --allow-read ` "$scriptUrl" ` "${{ vars.ORGANIZATION_NAME }}" ` "${{ vars.PROJECT_NAME }}" ` diff --git a/.github/workflows/unit-test-status-check.yml b/.github/workflows/unit-test-status-check.yml index af9bf08..a611bc6 100644 --- a/.github/workflows/unit-test-status-check.yml +++ b/.github/workflows/unit-test-status-check.yml @@ -10,12 +10,12 @@ on: jobs: run_tests: name: ${{ vars.PROJECT_NAME }} Test Status Check - uses: KinsonDigital/Infrastructure/.github/workflows/run-csharp-tests.yml@v13.3.1 + uses: KinsonDigital/Infrastructure/.github/workflows/run-csharp-tests.yml@v13.5.0 with: project-name: ${{ vars.PROJECT_NAME }}Tests build-config: Debug net-sdk-version: ${{ vars.NET_SDK_VERSION }} - checkout-ref: ${{ github.event.pull_request.head.ref }} checkout-repository: ${{ github.event.pull_request.head.repo.full_name }} + checkout-ref: ${{ github.event.pull_request.head.ref }} secrets: cicd-pat: ${{ secrets.CICD_TOKEN }}