Skip to content

Commit

Permalink
feat(main.yml): add main branch and all tags to trigger conditions to… (
Browse files Browse the repository at this point in the history
#2188)

… extend CI/CD coverage

feat(MigrationTools.sln): add triggertest.yml to solution for better
project organization
feat: add new triggertest.yml workflow for testing CI/CD triggers
  • Loading branch information
MrHinsh authored Jul 17, 2024
2 parents 47d9526 + 6fd5c45 commit 804086e
Show file tree
Hide file tree
Showing 3 changed files with 31 additions and 6 deletions.
11 changes: 5 additions & 6 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,13 @@ permissions:
contents: read
pull-requests: write

on:
on:
push:
branches:
tags:
- '!v*-*'
branches: ["*"]
tags-ignore: ["v*-*"]

pull_request:
branches:
- main
branches: [ "main" ]
workflow_dispatch:

concurrency:
Expand Down
1 change: 1 addition & 0 deletions MigrationTools.sln
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,7 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = ".workflows", ".workflows",
.github\workflows\open-pr-describer.yml = .github\workflows\open-pr-describer.yml
.github\workflows\opencommit.yml = .github\workflows\opencommit.yml
.github\workflows\stale.yml = .github\workflows\stale.yml
triggertest.yml = triggertest.yml
EndProjectSection
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "MigrationTools.ConsoleDataGenerator", "src\MigrationTools.ConsoleDataGenerator\MigrationTools.ConsoleDataGenerator.csproj", "{6A259EA6-860B-448A-8943-594DC1A15105}"
Expand Down
25 changes: 25 additions & 0 deletions triggertest.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: Trigger Test

on:
push:
branches:
- '*'
- main
tags:
- '*'
- '!v*-*'
pull_request:
branches:
- main
workflow_dispatch:

jobs:
Test:
name: "Test "
runs-on: ubuntu-latest
steps:
- name: "Test"
shell: pwsh
id: nkdagility
run: |
Write-Output "Hello World"

0 comments on commit 804086e

Please sign in to comment.