From a1a0302d05448f42fcf5257a522f40f79ea49357 Mon Sep 17 00:00:00 2001 From: Ben Date: Sat, 14 Oct 2023 10:20:11 -0600 Subject: [PATCH 1/2] Update ci-cd-project-card-validation.yml --- .../ci-cd-project-card-validation.yml | 20 +++---------------- 1 file changed, 3 insertions(+), 17 deletions(-) diff --git a/.github/workflows/ci-cd-project-card-validation.yml b/.github/workflows/ci-cd-project-card-validation.yml index 9f3f7f4..555b247 100644 --- a/.github/workflows/ci-cd-project-card-validation.yml +++ b/.github/workflows/ci-cd-project-card-validation.yml @@ -13,23 +13,9 @@ on: issues: branches: - main - -# The `concurrency` key ensures that only a single workflow in the same concurrency group will run at the same time. -# For more information, see "[AUTOTITLE](/actions/using-jobs/using-concurrency)." -# `concurrency.group` generates a concurrency group name from the workflow name and repository name. -# The `||` operator is used to define fallback values. -concurrency: - group: '${{ github.workflow }} @ ${{ github.repository || github.head_ref || github.ref }}' - + jobs: common_project_card_validation: - name: Invoke Common Project Card Validation - uses: teqbench/ci-cd-workflows/.github/workflows/ci-cd-project-card-validation.yml@main + name: Invoke Shared Project Card Validation + uses: teqbench/ci-cd-workflows/.github/workflows/shared-project-ci-cd-project-card-validation.yml@main secrets: inherit - with: - repository: ${{ github.repository }} - repository_owner: ${{ github.repository_owner }} - repository_name: ${{ github.event.repository.name }} - resource_url: ${{ github.event.issue.html_url || github.event.pull_request.html_url }} - event_number: ${{ github.event.issue.number || github.event.pull_request.number }} - project_number: 7 From efcbe763ef03988c3697ee195fa7bc30d183881c Mon Sep 17 00:00:00 2001 From: Ben Date: Sat, 14 Oct 2023 10:21:06 -0600 Subject: [PATCH 2/2] Update and rename ci-cd-nuget.yml to ci-cd-release-deploy-nuget-package.yml --- .github/workflows/ci-cd-nuget.yml | 30 ------------------- .../ci-cd-release-deploy-nuget-package.yml | 15 ++++++++++ 2 files changed, 15 insertions(+), 30 deletions(-) delete mode 100644 .github/workflows/ci-cd-nuget.yml create mode 100644 .github/workflows/ci-cd-release-deploy-nuget-package.yml diff --git a/.github/workflows/ci-cd-nuget.yml b/.github/workflows/ci-cd-nuget.yml deleted file mode 100644 index c146df3..0000000 --- a/.github/workflows/ci-cd-nuget.yml +++ /dev/null @@ -1,30 +0,0 @@ -name: Project Create/Deploy NuGet Package Workflow -# TeqBench - CI/CD - Create a NuGet package and (optionally) deploy to the organization's package registry on GitHub. -# Run the project's CI/CD to build/deploy NuGet package only when have merged PR to main branch. - -on: - pull_request: - types: [closed] - branches: - - main - -# The `concurrency` key ensures that only a single workflow in the same concurrency group will run at the same time. -# For more information, see "[AUTOTITLE](/actions/using-jobs/using-concurrency)." -# `concurrency.group` generates a concurrency group name from the workflow name and repository name. -# The `||` operator is used to define fallback values. -concurrency: - group: '${{ github.workflow }} @ ${{ github.repository || github.head_ref || github.ref }}' - -jobs: - common_ci_cd_dotnet_nuget_workflow: - name: Invoke Common .NET NuGet Package Workflow - uses: teqbench/ci-cd-workflows/.github/workflows/ci-cd-dotnet-nuget.yml@main - secrets: inherit - with: - repository: ${{ github.repository }} - repository_owner: ${{ github.repository_owner }} - repository_name: ${{ github.event.repository.name }} - resource_url: ${{ github.event.issue.html_url || github.event.pull_request.html_url }} - event_number: ${{ github.event.issue.number || github.event.pull_request.number }} - project_number: 7 - create-nuget-package: true diff --git a/.github/workflows/ci-cd-release-deploy-nuget-package.yml b/.github/workflows/ci-cd-release-deploy-nuget-package.yml new file mode 100644 index 0000000..259fdc2 --- /dev/null +++ b/.github/workflows/ci-cd-release-deploy-nuget-package.yml @@ -0,0 +1,15 @@ +name: Project Create/Deploy NuGet Package Workflow +# TeqBench - CI/CD - Create a NuGet package and (optionally) deploy to the organization's package registry on GitHub. +# Run the project's CI/CD to build/deploy NuGet package only when have merged PR to main branch. + +on: + pull_request: + types: [closed] + branches: + - main + +jobs: + common_project_card_validation: + name: Invoke Shared Project Create Release and Deploy NuGet Package Workflow + uses: teqbench/ci-cd-workflows/.github/workflows/shared-project-ci-cd-release-deploy-nuget-package.yml@main + secrets: inherit