Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 8 additions & 4 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@ name: CI
on:
# Triggers the workflow on push or pull request events but only for the main branch
push:
branches: [ main, 'rel/weekly' ]
branches: [ main ]
pull_request:
branches: [ main, 'rel/weekly' ]
branches: [ main ]

# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
Expand All @@ -27,6 +27,10 @@ on:
description: 'The end commit of the range to check for incremental builds.'
type: string
required: false
is_scheduled:
description: 'A boolean value that indicates whether this is a scheduled run.'
type: boolean
required: false

env:
DOTNET_VERSION: ${{ '9.0.x' }}
Expand Down Expand Up @@ -341,7 +345,7 @@ jobs:

sign:
needs: [package]
if: ${{ startsWith(github.ref, 'refs/heads/rel/') }}
if: ${{ startsWith(github.ref, 'refs/heads/rel/') || inputs.is_scheduled }}
runs-on: windows-latest
permissions:
id-token: write # Required for requesting the JWT
Expand Down Expand Up @@ -406,7 +410,7 @@ jobs:
${{ github.workspace }}/packages/**/*.nupkg

release:
if: ${{ startsWith(github.ref, 'refs/heads/rel/') }}
if: ${{ startsWith(github.ref, 'refs/heads/rel/') || inputs.is_scheduled }}
needs: [sign]
environment: nuget-release-gate # This gates this job until manually approved
runs-on: ubuntu-latest
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/scheduled-releases.yml
Original file line number Diff line number Diff line change
Expand Up @@ -68,4 +68,5 @@ jobs:
with:
commit_range_start: ${{ needs.tag-weekly-release.outputs.commit_range_start }}
commit_range_end: ${{ needs.tag-weekly-release.outputs.commit_range_end }}
is_scheduled: true
secrets: inherit
Loading