Skip to content

Commit

Permalink
ci(main.yml): refine trigger conditions to include 'main' branch and …
Browse files Browse the repository at this point in the history
…all tags except those starting with 'v'

feat(MigrationTools.sln): add triggertest.yml to the solution for testing triggers
feat: add new workflow file triggertest.yml for testing GitHub Actions triggers
  • Loading branch information
MrHinsh committed Jul 17, 2024
1 parent 0e1ddc7 commit 405db37
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,10 @@ permissions:
on:
push:
branches:
- "*"
- '*'
- main
tags:
- '*'
- '!v*-*'
pull_request:
branches:
Expand Down
1 change: 1 addition & 0 deletions MigrationTools.sln
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,7 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = ".workflows", ".workflows",
.github\workflows\main.yml = .github\workflows\main.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 405db37

Please sign in to comment.