Skip to content

Commit 5f4140a

Browse files
authored
Workflows - run CodeQL and ADR report publishing after main workflow (#199)
* CodeQL - Remove pull_request trigger * Dependabot - check for .net and GH action updates weekly * workflows - run codeql & adr after dotnet workflow on main otherwise the test results workflow may attach the report to the wrong workflow see dorny/test-reporter#67
1 parent 7838acd commit 5f4140a

File tree

3 files changed

+23
-7
lines changed

3 files changed

+23
-7
lines changed

.github/dependabot.yml

+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
version: 2
2+
3+
updates:
4+
- package-ecosystem: "dotnet"
5+
directory: "/"
6+
schedule:
7+
interval: "weekly"
8+
9+
- package-ecosystem: "github-actions"
10+
directory: "/"
11+
schedule:
12+
interval: "weekly"

.github/workflows/codeql.yml

+6-5
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
11
name: "Code Scanning - Action"
2-
32
on:
4-
push:
5-
branches: [main]
6-
pull_request:
7-
branches: [main]
3+
workflow_run:
4+
workflows: ['.NET'] # runs after .NET workflow
5+
types:
6+
- completed
7+
branches:
8+
- 'main'
89

910
jobs:
1011
CodeQL-Build:

.github/workflows/publish-log4brains.yml

+5-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,11 @@
11
name: Publish Log4brains
22
on:
3-
push:
3+
workflow_run:
4+
workflows: ['.NET'] # runs after .NET workflow
5+
types:
6+
- completed
47
branches:
5-
- main
8+
- 'main'
69
jobs:
710
build-and-publish:
811
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)