From 5e7dbb53c102811ef958ef92c7f350aea8aa7e63 Mon Sep 17 00:00:00 2001 From: Kamron Batman <3953314+kamronbatman@users.noreply.github.com> Date: Sun, 16 Oct 2022 10:10:55 -0700 Subject: [PATCH] fix: Updates Github Actions & Azure Pipelines (#1192) --- .github/workflows/build-test.yml | 14 ++++++-------- .github/workflows/create-release.yml | 17 ++++++++--------- .github/workflows/update-docs.yml | 4 ++-- azure-pipelines.yml | 8 ++++---- 4 files changed, 20 insertions(+), 23 deletions(-) diff --git a/.github/workflows/build-test.yml b/.github/workflows/build-test.yml index 4ff8d6748..4543d0f47 100644 --- a/.github/workflows/build-test.yml +++ b/.github/workflows/build-test.yml @@ -14,19 +14,17 @@ jobs: fail-fast: false matrix: include: - - os: macos-11 - name: MacOS 11 - os: macos-12 name: MacOS 12 steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v3 with: fetch-depth: 0 # avoid shallow clone so nbgv can do its work. - name: Setup .NET 6 - uses: actions/setup-dotnet@v1 + uses: actions/setup-dotnet@v3 with: - dotnet-version: 6.0.401 + dotnet-version: 6.0.402 - name: Build run: ./publish.cmd Release - name: Test @@ -48,13 +46,13 @@ jobs: steps: - name: Install Prerequisites run: dnf makecache --refresh && dnf install -y findutils libicu - - uses: actions/checkout@v2 + - uses: actions/checkout@v3 with: fetch-depth: 0 # avoid shallow clone so nbgv can do its work. - name: Setup .NET 6 - uses: actions/setup-dotnet@v1 + uses: actions/setup-dotnet@v3 with: - dotnet-version: 6.0.401 + dotnet-version: 6.0.402 - name: Build run: ./publish.cmd Release - name: Test diff --git a/.github/workflows/create-release.yml b/.github/workflows/create-release.yml index 86b55d9d3..25aa492bb 100644 --- a/.github/workflows/create-release.yml +++ b/.github/workflows/create-release.yml @@ -10,7 +10,7 @@ jobs: name: Create Release runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v3 with: fetch-depth: 0 # avoid shallow clone so nbgv can do its work. token: ${{ secrets.WORKFLOW_TOKEN }} @@ -40,22 +40,22 @@ jobs: id: changelog uses: TriPSs/conventional-changelog-action@v3 with: - github-token: ${{ secrets.GITHUB_TOKEN }} + github-token: ${{ secrets.WORKFLOW_TOKEN }} output-file: false skip-version-file: true skip-commit: true release-count: 1 env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + GITHUB_TOKEN: ${{ secrets.WORKFLOW_TOKEN }} - name: Delete v${{ steps.changelog.outputs.version }} Tag - uses: dev-drprasad/delete-tag-and-release@v0.1.3 + uses: dev-drprasad/delete-tag-and-release@v0.2.0 with: delete_release: true tag_name: v${{ steps.changelog.outputs.version }} env: GITHUB_TOKEN: ${{ secrets.WORKFLOW_TOKEN }} - name: Delete v0.1.0 Tag - uses: dev-drprasad/delete-tag-and-release@v0.1.3 + uses: dev-drprasad/delete-tag-and-release@v0.2.0 with: delete_release: true tag_name: v0.1.0 @@ -63,12 +63,11 @@ jobs: GITHUB_TOKEN: ${{ secrets.WORKFLOW_TOKEN }} - name: Create Release id: create_release - uses: actions/create-release@v1 + uses: softprops/action-gh-release@v1 with: body: ${{ steps.changelog.outputs.clean_changelog }} tag_name: ${{ steps.nbgv.outputs.Version }} - release_name: ${{ steps.nbgv.outputs.Version }} + name: ${{ steps.nbgv.outputs.Version }} draft: false prerelease: false - env: - GITHUB_TOKEN: ${{ secrets.WORKFLOW_TOKEN }} + token: ${{ secrets.WORKFLOW_TOKEN }} diff --git a/.github/workflows/update-docs.yml b/.github/workflows/update-docs.yml index 62b080225..57be0002e 100644 --- a/.github/workflows/update-docs.yml +++ b/.github/workflows/update-docs.yml @@ -9,8 +9,8 @@ jobs: update-docs: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 - - uses: actions/setup-python@v2 + - uses: actions/checkout@v3 + - uses: actions/setup-python@v4 with: python-version: 3.x - run: pip install mkdocs-material diff --git a/azure-pipelines.yml b/azure-pipelines.yml index 4faf09949..5d03c7a41 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -18,8 +18,8 @@ jobs: displayName: 'Install .NET 6' inputs: packageType: sdk - version: 6.0.401 - - task: NuGetAuthenticate@0 + version: 6.0.402 + - task: NuGetAuthenticate@1 - script: ./publish.cmd Release displayName: 'Build' - script: dotnet test --no-restore @@ -49,8 +49,8 @@ jobs: displayName: 'Install .NET 6' inputs: packageType: sdk - version: 6.0.401 - - task: NuGetAuthenticate@0 + version: 6.0.402 + - task: NuGetAuthenticate@1 - script: ./publish.cmd Release displayName: 'Build' - script: dotnet test --no-restore