Skip to content

Commit

Permalink
Merge 3be6bbe into 1e48eb5
Browse files Browse the repository at this point in the history
  • Loading branch information
gabrielweyer committed Apr 15, 2022
2 parents 1e48eb5 + 3be6bbe commit 41d0c6c
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 4 deletions.
1 change: 1 addition & 0 deletions .github/CODEOWNERS
Validating CODEOWNERS rules …
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
* @gabrielweyer
17 changes: 14 additions & 3 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,16 @@ on:
- .circleci/config.yml
- azure-pipelines.yml
jobs:
Build:
build:
name: Build
runs-on: windows-2022
env:
CREATE_RELEASE: ${{ github.ref_name == 'main' && !contains(github.event.head_commit.message, '[skip-release]') }}
CREATE_PRERELEASE: ${{ startsWith(github.ref_name, 'features/') }}
IS_FEATURE_PULL_REQUEST: ${{ github.event_name == 'pull_request' && startsWith(github.head_ref, 'features/') }}
CREATE_PRERELEASE: 'false'
steps:
- uses: actions/checkout@v2
- name: Checkout
uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Install latest .NET SDK
Expand Down Expand Up @@ -55,6 +58,14 @@ jobs:
name: Test results
path: 'artifacts/test-results/trx/*.trx'
reporter: dotnet-trx
- name: Determine if we're skipping release on feature Pull Request
if: ${{ env.IS_FEATURE_PULL_REQUEST == 'true' }}
run: |
$headCommitMessage = git log ${{ github.event.pull_request.head.sha }} -n 1 --format=%B
Write-Host "HEAD commit message is: $headCommitMessage"
if ($headCommitMessage -notlike '*[skip-release]*') {
"CREATE_PRERELEASE=true" >> $Env:GITHUB_ENV
}
- name: Create GitHub release on main branch
if: ${{ env.CREATE_RELEASE == 'true' }}
env:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: "CodeQL"
name: "C# Security scanning"

on:
push:
Expand Down

0 comments on commit 41d0c6c

Please sign in to comment.