Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(main.yml): add main branch and all tags to trigger conditions to… #2188

Merged
merged 8 commits into from
Jul 17, 2024
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"