forked from andrewjsaid/builderbuilder
-
Notifications
You must be signed in to change notification settings - Fork 0
48 lines (43 loc) · 1.38 KB
/
version-sweeper.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
# 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:
schedule:
- cron: "0 0 1 * *"
workflow_dispatch:
inputs:
reason:
description: "The reason for running the workflow"
required: true
default: "Manual run"
permissions:
contents: read
# Run on the latest version of Ubuntu
jobs:
version-sweep:
runs-on: ubuntu-latest
timeout-minutes: 10
# Checkout the repo into the workspace within the VM
steps:
- uses: actions/checkout@v4.1.1
# If triggered manually, print the reason why
- name: "Print manual run reason"
env:
REASON: ${{ github.event.inputs.reason }}
if: ${{ github.event_name == 'workflow_dispatch' }}
run: |
echo "Reason: $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.9
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
owner: ${{ github.repository_owner }}
name: ${{ github.repository }}
branch: ${{ github.ref }}
sdkCompliance: true