From 513a4cd79850e8f3732656655b34f6a8f000bbdf Mon Sep 17 00:00:00 2001 From: Chris Patterson Date: Tue, 24 Mar 2020 19:16:38 -0400 Subject: [PATCH 01/17] Adding schedule --- .github/workflows/dotnetcore-2.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/dotnetcore-2.yml b/.github/workflows/dotnetcore-2.yml index 9eac95f..e66d1bc 100644 --- a/.github/workflows/dotnetcore-2.yml +++ b/.github/workflows/dotnetcore-2.yml @@ -5,6 +5,8 @@ on: branches: [ master ] pull_request: branches: [ master ] + schedule: + - cron: '*/5 0 * * *' jobs: build: From f66eee8e6e58af83ed9fb8ed376f35665b6c8aee Mon Sep 17 00:00:00 2001 From: Chris Patterson Date: Tue, 24 Mar 2020 19:46:39 -0400 Subject: [PATCH 02/17] Update README.md --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index cd676e5..0f63aca 100644 --- a/README.md +++ b/README.md @@ -2,3 +2,4 @@ New content for the readme More edits +adsfasdfadsf From e60abf43f7d01a7fd911f279dce515928ffd9135 Mon Sep 17 00:00:00 2001 From: Chris Patterson Date: Tue, 24 Mar 2020 19:56:45 -0400 Subject: [PATCH 03/17] Update dotnetcore-2.yml --- .github/workflows/dotnetcore-2.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/dotnetcore-2.yml b/.github/workflows/dotnetcore-2.yml index e66d1bc..4b016d7 100644 --- a/.github/workflows/dotnetcore-2.yml +++ b/.github/workflows/dotnetcore-2.yml @@ -6,7 +6,7 @@ on: pull_request: branches: [ master ] schedule: - - cron: '*/5 0 * * *' + - cron: '*/5 * * * *' jobs: build: From 1059b34499ceaf5eb9dae36c93eacc6d0f4456aa Mon Sep 17 00:00:00 2001 From: Chris Patterson Date: Tue, 24 Mar 2020 20:56:22 -0400 Subject: [PATCH 04/17] Update dotnetcore-2.yml --- .github/workflows/dotnetcore-2.yml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/.github/workflows/dotnetcore-2.yml b/.github/workflows/dotnetcore-2.yml index 4b016d7..1185eed 100644 --- a/.github/workflows/dotnetcore-2.yml +++ b/.github/workflows/dotnetcore-2.yml @@ -5,8 +5,7 @@ on: branches: [ master ] pull_request: branches: [ master ] - schedule: - - cron: '*/5 * * * *' + jobs: build: From a3b4428033b54923b495b2ae0d2d6e149503685e Mon Sep 17 00:00:00 2001 From: Chris Patterson Date: Wed, 1 Apr 2020 13:04:44 -0400 Subject: [PATCH 05/17] Update dotnetcore.yml --- .github/workflows/dotnetcore.yml | 20 +++++++++++++++++++- 1 file changed, 19 insertions(+), 1 deletion(-) diff --git a/.github/workflows/dotnetcore.yml b/.github/workflows/dotnetcore.yml index a02d08d..7ffc933 100644 --- a/.github/workflows/dotnetcore.yml +++ b/.github/workflows/dotnetcore.yml @@ -5,10 +5,12 @@ on: branches: [ master ] pull_request: branches: [ master ] + repository_dispatch: + types: [matrix-ci] jobs: build: - + if: github.event != 'repository_dispatch' runs-on: ${{ matrix.image }} strategy: matrix: @@ -22,3 +24,19 @@ jobs: dotnet-version: 3.1.101 - name: Build with dotnet run: dotnet build --configuration Release + + build-2: + if: github.event == 'repository_dispatch' + runs-on: ${{ matrix.image }} + strategy: + matrix: + image: ${{ github.event.client_payload.images }} + + steps: + - uses: actions/checkout@v2 + - name: Setup .NET Core + uses: actions/setup-dotnet@v1 + with: + dotnet-version: 3.1.101 + - name: Build with dotnet + run: dotnet build --configuration Release From fe3205c841a80229be6fd6ed40e273c016712206 Mon Sep 17 00:00:00 2001 From: Chris Patterson Date: Wed, 1 Apr 2020 13:09:49 -0400 Subject: [PATCH 06/17] Create trigger-event.yml --- .github/workflows/trigger-event.yml | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 .github/workflows/trigger-event.yml diff --git a/.github/workflows/trigger-event.yml b/.github/workflows/trigger-event.yml new file mode 100644 index 0000000..fcbef5d --- /dev/null +++ b/.github/workflows/trigger-event.yml @@ -0,0 +1,27 @@ +# This is a basic workflow to help you get started with Actions + +name: repo-dispatch + +# Controls when the action will run. Triggers the workflow on push or pull request +# events but only for the master branch +on: + push: + branches: [ master ] + pull_request: + branches: [ master ] + +# 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" + trigger: + # 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: + - name: Repository Dispatch + uses: peter-evans/repository-dispatch@v1 + with: + token: ${{ secrets.REPO_ACCESS_TOKEN }} + event-type: 'matrix-ci' + client-payload: '{"images": [ "ubuntu-latest", "windows-latest" ] }' From d52d33053c15d5186ae9845bd7168c291e13a3cf Mon Sep 17 00:00:00 2001 From: Chris Patterson Date: Fri, 3 Apr 2020 10:19:38 -0400 Subject: [PATCH 07/17] Update dotnetcore-2.yml --- .github/workflows/dotnetcore-2.yml | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/.github/workflows/dotnetcore-2.yml b/.github/workflows/dotnetcore-2.yml index 1185eed..2f25869 100644 --- a/.github/workflows/dotnetcore-2.yml +++ b/.github/workflows/dotnetcore-2.yml @@ -1,16 +1,14 @@ name: .NET Core CI 2 - on: - push: - branches: [ master ] - pull_request: - branches: [ master ] - + repository_dispatch: + types: [matrix-ci] jobs: build: - - runs-on: ubuntu-latest + runs-on: ${{ matrix.image }} + strategy: + matrix: + image: ${{ github.event.client_payload.images }} steps: - uses: actions/checkout@v2 From ea526f1b34b58aae23a588ad91e8a1ecceeddd2c Mon Sep 17 00:00:00 2001 From: Chris Patterson Date: Fri, 3 Apr 2020 10:21:05 -0400 Subject: [PATCH 08/17] Update dotnetcore.yml --- .github/workflows/dotnetcore.yml | 19 ------------------- 1 file changed, 19 deletions(-) diff --git a/.github/workflows/dotnetcore.yml b/.github/workflows/dotnetcore.yml index 7ffc933..61c9831 100644 --- a/.github/workflows/dotnetcore.yml +++ b/.github/workflows/dotnetcore.yml @@ -5,12 +5,9 @@ on: branches: [ master ] pull_request: branches: [ master ] - repository_dispatch: - types: [matrix-ci] jobs: build: - if: github.event != 'repository_dispatch' runs-on: ${{ matrix.image }} strategy: matrix: @@ -24,19 +21,3 @@ jobs: dotnet-version: 3.1.101 - name: Build with dotnet run: dotnet build --configuration Release - - build-2: - if: github.event == 'repository_dispatch' - runs-on: ${{ matrix.image }} - strategy: - matrix: - image: ${{ github.event.client_payload.images }} - - steps: - - uses: actions/checkout@v2 - - name: Setup .NET Core - uses: actions/setup-dotnet@v1 - with: - dotnet-version: 3.1.101 - - name: Build with dotnet - run: dotnet build --configuration Release From fc02830cfca8b48ae17a36d0abd06f3ab1f14502 Mon Sep 17 00:00:00 2001 From: Chris Patterson Date: Tue, 27 Apr 2021 11:02:38 -0400 Subject: [PATCH 09/17] Create release.yml --- .github/workflows/release.yml | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 .github/workflows/release.yml diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 0000000..684b0b3 --- /dev/null +++ b/.github/workflows/release.yml @@ -0,0 +1,27 @@ +# This is a basic workflow to help you get started with Actions + +name: CI + +# Controls when the action will run. +on: + # Triggers the workflow on push or pull request events but only for the master branch + release: + types: [prereleased] + # Allows you to run this workflow manually from the Actions tab + workflow_dispatch: + +# 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" + build: + # 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: + + # Runs a single command using the runners shell + - name: Run a one-line script + run: echo $payload + env: + payload: ${{ fromJson(github.event) }} From 19af2ba7b1510a6cc5f77648ceb2f31829d76742 Mon Sep 17 00:00:00 2001 From: Chris Patterson Date: Tue, 27 Apr 2021 11:07:45 -0400 Subject: [PATCH 10/17] Update release.yml --- .github/workflows/release.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 684b0b3..6660a59 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -6,7 +6,7 @@ name: CI on: # Triggers the workflow on push or pull request events but only for the master branch release: - types: [prereleased] + types: [prereleased, released] # Allows you to run this workflow manually from the Actions tab workflow_dispatch: @@ -24,4 +24,4 @@ jobs: - name: Run a one-line script run: echo $payload env: - payload: ${{ fromJson(github.event) }} + payload: ${{ toJson(github.event) }} From 1cece52ec3ecb85e2477089371ab20981a763290 Mon Sep 17 00:00:00 2001 From: Chris Patterson Date: Tue, 27 Apr 2021 11:11:28 -0400 Subject: [PATCH 11/17] Update release.yml --- .github/workflows/release.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 6660a59..58f86d1 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -6,7 +6,9 @@ name: CI on: # Triggers the workflow on push or pull request events but only for the master branch release: - types: [prereleased, released] + types: + - prereleased + - released # Allows you to run this workflow manually from the Actions tab workflow_dispatch: From 55afb4ee7fa3e2af4ee22b8f58fa5cc1edb7e9bc Mon Sep 17 00:00:00 2001 From: Chris Patterson Date: Tue, 27 Apr 2021 11:32:57 -0400 Subject: [PATCH 12/17] Update release.yml --- .github/workflows/release.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 58f86d1..480b8a1 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -7,6 +7,7 @@ on: # Triggers the workflow on push or pull request events but only for the master branch release: types: + - published - prereleased - released # Allows you to run this workflow manually from the Actions tab @@ -23,7 +24,7 @@ jobs: steps: # Runs a single command using the runners shell - - name: Run a one-line script + - name: Release even type ${{ github.event.action }} run: echo $payload env: payload: ${{ toJson(github.event) }} From 759e8ca075c77ce21a25c0bf6f740f9f7bf24797 Mon Sep 17 00:00:00 2001 From: Chris Patterson Date: Wed, 2 Jun 2021 10:35:33 -0400 Subject: [PATCH 13/17] Update azure-pipelines-1.yml for Azure Pipelines --- azure-pipelines-1.yml | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/azure-pipelines-1.yml b/azure-pipelines-1.yml index d6289dd..6545851 100644 --- a/azure-pipelines-1.yml +++ b/azure-pipelines-1.yml @@ -1,4 +1,5 @@ # ASP.NET Core + # Build and test ASP.NET Core projects targeting .NET Core. # Add steps that run tests, create a NuGet package, deploy, and more: # https://docs.microsoft.com/azure/devops/pipelines/languages/dotnet-core @@ -13,5 +14,11 @@ variables: buildConfiguration: 'Release' steps: -- script: dotnet build --configuration $(buildConfiguration) - displayName: 'dotnet build $(buildConfiguration)' +- task: AzurePowerShell@5 + inputs: + azureSubscription: 'azure-pipeline-pm(5e811388-da36-4a22-b49b-e3477f384ec3)' + ScriptType: 'InlineScript' + Inline: | + cd env: + ls + azurePowerShellVersion: 'LatestVersion' From dfac89fe0e2fae28ccf9786ee2db3f620c9a60c6 Mon Sep 17 00:00:00 2001 From: Chris Patterson Date: Wed, 2 Jun 2021 10:38:13 -0400 Subject: [PATCH 14/17] Update azure-pipelines-1.yml for Azure Pipelines --- azure-pipelines-1.yml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/azure-pipelines-1.yml b/azure-pipelines-1.yml index 6545851..0727ed6 100644 --- a/azure-pipelines-1.yml +++ b/azure-pipelines-1.yml @@ -19,6 +19,5 @@ steps: azureSubscription: 'azure-pipeline-pm(5e811388-da36-4a22-b49b-e3477f384ec3)' ScriptType: 'InlineScript' Inline: | - cd env: - ls + gci env:\ azurePowerShellVersion: 'LatestVersion' From e3107defeb1b28e7382124435fbd4b32ccec8231 Mon Sep 17 00:00:00 2001 From: Chris Patterson Date: Wed, 2 Jun 2021 10:42:04 -0400 Subject: [PATCH 15/17] Update azure-pipelines-1.yml --- azure-pipelines-1.yml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/azure-pipelines-1.yml b/azure-pipelines-1.yml index 0727ed6..e25426d 100644 --- a/azure-pipelines-1.yml +++ b/azure-pipelines-1.yml @@ -21,3 +21,10 @@ steps: Inline: | gci env:\ azurePowerShellVersion: 'LatestVersion' +- task: AzureCLI@2 + inputs: + azureSubscription: 'azure-pipeline-pm(5e811388-da36-4a22-b49b-e3477f384ec3)' + scriptType: 'batch' + scriptLocation: 'inlineScript' + inlineScript: 'set' + From 67e84b3b6c185772a09c89833bde22332e73f018 Mon Sep 17 00:00:00 2001 From: Chris Patterson Date: Wed, 2 Jun 2021 10:43:23 -0400 Subject: [PATCH 16/17] Update azure-pipelines-1.yml --- azure-pipelines-1.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/azure-pipelines-1.yml b/azure-pipelines-1.yml index e25426d..23014bf 100644 --- a/azure-pipelines-1.yml +++ b/azure-pipelines-1.yml @@ -24,7 +24,7 @@ steps: - task: AzureCLI@2 inputs: azureSubscription: 'azure-pipeline-pm(5e811388-da36-4a22-b49b-e3477f384ec3)' - scriptType: 'batch' + scriptType: 'bash' scriptLocation: 'inlineScript' - inlineScript: 'set' + inlineScript: 'env' From fba52402f892baada06924c0da844c6607a66a01 Mon Sep 17 00:00:00 2001 From: Chris Patterson Date: Wed, 20 Jul 2022 12:48:25 -0400 Subject: [PATCH 17/17] Update dotnetcore.yml --- .github/workflows/dotnetcore.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/dotnetcore.yml b/.github/workflows/dotnetcore.yml index 61c9831..46daa70 100644 --- a/.github/workflows/dotnetcore.yml +++ b/.github/workflows/dotnetcore.yml @@ -1,5 +1,7 @@ name: .NET Core. CI 1 +foo: test + on: push: branches: [ master ]