From 6ed651ef66139d2e1b2638ac3e13ed07de80d312 Mon Sep 17 00:00:00 2001 From: David Pine Date: Sun, 21 Feb 2021 21:12:54 -0600 Subject: [PATCH 1/2] Create version-sweep.yml --- .github/workflows/version-sweep.yml | 44 +++++++++++++++++++++++++++++ 1 file changed, 44 insertions(+) create mode 100644 .github/workflows/version-sweep.yml diff --git a/.github/workflows/version-sweep.yml b/.github/workflows/version-sweep.yml new file mode 100644 index 0000000000000..5260668d3c305 --- /dev/null +++ b/.github/workflows/version-sweep.yml @@ -0,0 +1,44 @@ +# This is a basic workflow to help you get started with Actions + +name: 'target supported version' + +# Controls when the action will run. +on: + # Triggers the workflow on push or pull request events but only for the master branch + schedule: + - cron: '0 0 1 * *' + workflow_dispatch: + inputs: + reason: + description: 'The reason for running the workflow' + required: true + default: 'Manual run' + +# A workflow run is made up of one or more jobs that can run sequentially or in parallel +jobs: + # This workflow contains a single job called "build" + version-sweep: + # The type of runner that the job will run on + runs-on: ubuntu-latest + + # Steps represent a sequence of tasks that will be executed as part of the job + steps: + # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it + - uses: actions/checkout@v2 + + # Runs a single command using the runners shell + - name: 'Print manual run reason' + if: ${{ github.event_name == 'workflow_dispatch' }} + run: | + echo 'Reason: ${{ github.event.inputs.reason }}' + + # Start the .NET version sweeper, scan projects/slns for non-LTS (or currrent) versions + - name: .NET version sweeper + id: dotnet-version-sweeper + uses: dotnet/versionsweeper@v1.0 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + with: + owner: ${{ github.repository_owner }} + name: ${{ github.repository }} + branch: ${{ github.ref }} From fb701a446c2c9cc55a71a53e9f417d12af5dbd5d Mon Sep 17 00:00:00 2001 From: David Pine Date: Wed, 24 Feb 2021 10:12:18 -0600 Subject: [PATCH 2/2] Update .github/workflows/version-sweep.yml --- .github/workflows/version-sweep.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/version-sweep.yml b/.github/workflows/version-sweep.yml index 5260668d3c305..0a79ca45403f3 100644 --- a/.github/workflows/version-sweep.yml +++ b/.github/workflows/version-sweep.yml @@ -35,7 +35,7 @@ jobs: # Start the .NET version sweeper, scan projects/slns for non-LTS (or currrent) versions - name: .NET version sweeper id: dotnet-version-sweeper - uses: dotnet/versionsweeper@v1.0 + uses: dotnet/versionsweeper@v1.2 env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} with: