Skip to content

Commit

Permalink
Merge pull request #11 from teqbench/ben-v-patch-1
Browse files Browse the repository at this point in the history
Use shared project workflows
  • Loading branch information
ben-v authored Oct 14, 2023
2 parents 3105e9e + efcbe76 commit 26ac282
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 47 deletions.
30 changes: 0 additions & 30 deletions .github/workflows/ci-cd-nuget.yml

This file was deleted.

20 changes: 3 additions & 17 deletions .github/workflows/ci-cd-project-card-validation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
15 changes: 15 additions & 0 deletions .github/workflows/ci-cd-release-deploy-nuget-package.yml
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 26ac282

Please sign in to comment.