This repository has been archived by the owner on Jul 25, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added in a github action which will scan the .net version and create issues when they are no longer LTS.
- Loading branch information
Showing
1 changed file
with
51 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
# The name used in the GitHub UI for the workflow | ||
name: '.Net Version Sweeper' | ||
|
||
# When to run this action: | ||
# - Scheduled on the first of every month | ||
# - Manually runable from the GitHub UI with a reason | ||
on: | ||
push: | ||
branches: | ||
- master | ||
- main | ||
pull_request: | ||
# The branches below must be a subset of the branches above | ||
branches: | ||
- master | ||
- main | ||
schedule: | ||
- cron: '0 0 1 * *' | ||
workflow_dispatch: | ||
inputs: | ||
reason: | ||
description: 'The reason for running the workflow' | ||
required: true | ||
default: 'Manual run' | ||
|
||
# Run on the latest version of Ubuntu | ||
jobs: | ||
version-sweep: | ||
runs-on: ubuntu-latest | ||
|
||
# Checkout the repo into the workspace within the VM | ||
steps: | ||
- uses: actions/checkout@v2 | ||
|
||
# If triggered manually, print the reason why | ||
- name: 'Print manual run reason' | ||
if: ${{ github.event_name == 'workflow_dispatch' }} | ||
run: | | ||
echo "Reason: ${{ github.event.inputs.reason }}" | ||
# Run the .NET version sweeper | ||
# Issues will be automatically created for any non-ignored projects that are targeting non-LTS versions | ||
- name: .NET version sweeper | ||
id: dotnet-version-sweeper | ||
uses: dotnet/versionsweeper@v1.2 | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
with: | ||
owner: ${{ github.repository_owner }} | ||
name: ${{ github.repository }} | ||
branch: ${{ github.ref }} | ||
sdkCompliance: true |