diff --git a/.github/workflows/check-authorized-user.yml b/.github/workflows/check-authorized-user.yml index dda9074..70f0bc9 100644 --- a/.github/workflows/check-authorized-user.yml +++ b/.github/workflows/check-authorized-user.yml @@ -3,7 +3,7 @@ on: workflow_call: jobs: check-authorized-user: - runs-on: ubuntu-22.04 + runs-on: ubuntu-latest defaults: run: shell: pwsh diff --git a/.github/workflows/cve-check.yml b/.github/workflows/cve-check.yml index 8e6412a..391ced6 100644 --- a/.github/workflows/cve-check.yml +++ b/.github/workflows/cve-check.yml @@ -9,7 +9,7 @@ defaults: jobs: build: name: Linux - runs-on: ubuntu-22.04 + runs-on: ubuntu-latest defaults: run: working-directory: ./src @@ -21,7 +21,7 @@ jobs: - name: Setup .NET SDK uses: actions/setup-dotnet@v6.0.0 with: - dotnet-version: 10.0.x + global-json-file: global.json - name: Restore id: restore run: echo "CVECOUNT=$(dotnet restore -v m | grep -c -e 'NU190[1-4]')" >> "$GITHUB_OUTPUT" @@ -32,4 +32,4 @@ jobs: uses: actions/upload-artifact@v7 with: name: vulnerabilities - path: ${{ github.workspace }}/vulnerabilities.json \ No newline at end of file + path: ${{ github.workspace }}/vulnerabilities.json diff --git a/.github/workflows/not-ci.yml b/.github/workflows/not-ci.yml index b22ee9d..731e99d 100644 --- a/.github/workflows/not-ci.yml +++ b/.github/workflows/not-ci.yml @@ -18,7 +18,7 @@ jobs: - name: Setup .NET SDK uses: actions/setup-dotnet@v6.0.0 with: - dotnet-version: 10.0.x + global-json-file: global.json - name: Build run: dotnet build src --configuration Release - name: Run tests diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml deleted file mode 100644 index 26713d7..0000000 --- a/.github/workflows/publish.yml +++ /dev/null @@ -1,44 +0,0 @@ -name: Publish -on: - release: - types: [published] -jobs: - publish: - runs-on: ubuntu-22.04 - environment: staging - defaults: - run: - shell: pwsh - steps: - - name: Checkout - uses: actions/checkout@v7.0.1 - with: - fetch-depth: 0 - - name: Setup .NET SDK - uses: actions/setup-dotnet@v6.0.0 - with: - dotnet-version: 10.0.x - # source-url: ${{ vars.FEED_URL}} - env: - NUGET_AUTH_TOKEN: ${{secrets.FEED_TOKEN}} - - name: Build - run: dotnet build src --configuration Release - # - name: Sign NuGet packages - # uses: Particular/sign-nuget-packages-action@v1.0.0 - # with: - # client-id: ${{ secrets.AZURE_KEY_VAULT_CLIENT_ID }} - # tenant-id: ${{ secrets.AZURE_KEY_VAULT_TENANT_ID }} - # client-secret: ${{ secrets.AZURE_KEY_VAULT_CLIENT_SECRET }} - # certificate-name: ${{ secrets.AZURE_KEY_VAULT_CERTIFICATE_NAME }} - - name: Publish artifacts to the workflow - uses: actions/upload-artifact@v7.0.1 - with: - name: nugets - path: nugets/* - retention-days: 1 - - name: Publish artifacts to the release - run: gh release upload ${{github.event.release.tag_name}} nugets/* - env: - GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}} - # - name: Push packages to nuget - # run: dotnet nuget push nugets\*.nupkg diff --git a/.github/workflows/push-docker-images.yml b/.github/workflows/push-docker-images.yml index 24e33b6..6641ae0 100644 --- a/.github/workflows/push-docker-images.yml +++ b/.github/workflows/push-docker-images.yml @@ -3,7 +3,7 @@ on: workflow_call: jobs: push-docker-images: - runs-on: ubuntu-22.04 + runs-on: ubuntu-latest defaults: run: shell: bash diff --git a/.github/workflows/push-nuget-packages-staging.yml b/.github/workflows/push-nuget-packages-staging.yml index b0b20c6..e21a0ca 100644 --- a/.github/workflows/push-nuget-packages-staging.yml +++ b/.github/workflows/push-nuget-packages-staging.yml @@ -10,7 +10,7 @@ jobs: permissions: id-token: write contents: write - runs-on: ubuntu-22.04 + runs-on: ubuntu-latest defaults: run: shell: pwsh @@ -18,7 +18,7 @@ jobs: - name: Setup .NET SDK uses: actions/setup-dotnet@v6.0.0 with: - dotnet-version: 10.0.x + global-json-file: global.json - name: Download assets from draft release run: | $name = "${{ inputs.version }}" diff --git a/.github/workflows/push-nuget-packages.yml b/.github/workflows/push-nuget-packages.yml index 2f65429..dd0c9dc 100644 --- a/.github/workflows/push-nuget-packages.yml +++ b/.github/workflows/push-nuget-packages.yml @@ -9,7 +9,7 @@ jobs: push-nuget-packages: permissions: id-token: write - runs-on: ubuntu-22.04 + runs-on: ubuntu-latest defaults: run: shell: pwsh @@ -17,7 +17,7 @@ jobs: - name: Setup .NET SDK uses: actions/setup-dotnet@v6.0.0 with: - dotnet-version: 10.0.x + global-json-file: global.json - name: Download assets from release run: | gh release download "${{ inputs.version }}" --repo "${{ github.repository }}" --pattern "*.nupkg" --dir nugets diff --git a/.github/workflows/push-powershell-packages.yml b/.github/workflows/push-powershell-packages.yml index 22f33da..2f4df7a 100644 --- a/.github/workflows/push-powershell-packages.yml +++ b/.github/workflows/push-powershell-packages.yml @@ -7,7 +7,7 @@ on: type: string jobs: push-powershell-packages: - runs-on: ubuntu-22.04 + runs-on: ubuntu-latest defaults: run: shell: pwsh diff --git a/.github/workflows/push-release-info-to-aws-s3.yml b/.github/workflows/push-release-info-to-aws-s3.yml index 6961117..3094241 100644 --- a/.github/workflows/push-release-info-to-aws-s3.yml +++ b/.github/workflows/push-release-info-to-aws-s3.yml @@ -7,7 +7,7 @@ on: type: string jobs: push-release-info-to-aws-s3: - runs-on: ubuntu-22.04 + runs-on: ubuntu-latest defaults: run: shell: pwsh diff --git a/.github/workflows/release-deploy-production.yml b/.github/workflows/release-deploy-production.yml index 2f05f7a..a0da20e 100644 --- a/.github/workflows/release-deploy-production.yml +++ b/.github/workflows/release-deploy-production.yml @@ -11,7 +11,7 @@ jobs: uses: ./.github/workflows/check-authorized-user.yml publish-release-notes: needs: check-authorized-user - runs-on: ubuntu-22.04 + runs-on: ubuntu-latest defaults: run: shell: pwsh @@ -19,7 +19,7 @@ jobs: - name: Setup .NET SDK uses: actions/setup-dotnet@v6.0.0 with: - dotnet-version: 10.0.x + global-json-file: global.json - name: Setup GitReleaseManager # https://github.com/GitTools/GitReleaseManager#net-global-tool run: dotnet tool install --global GitReleaseManager.Tool diff --git a/.github/workflows/release-deploy-staging.yml b/.github/workflows/release-deploy-staging.yml index e7d3b19..0ec77b5 100644 --- a/.github/workflows/release-deploy-staging.yml +++ b/.github/workflows/release-deploy-staging.yml @@ -20,7 +20,7 @@ jobs: secrets: inherit create-release-notes: needs: check-authorized-user - runs-on: ubuntu-22.04 + runs-on: ubuntu-latest defaults: run: shell: pwsh @@ -30,7 +30,7 @@ jobs: - name: Setup .NET SDK uses: actions/setup-dotnet@v6.0.0 with: - dotnet-version: 10.0.x + global-json-file: global.json - name: Setup GitReleaseManager # https://github.com/GitTools/GitReleaseManager#net-global-tool run: | diff --git a/.github/workflows/update-dependecies.yml b/.github/workflows/update-dependecies.yml deleted file mode 100644 index 7b16382..0000000 --- a/.github/workflows/update-dependecies.yml +++ /dev/null @@ -1,24 +0,0 @@ -name: Update Dependencies -on: - schedule: - # At 14 minutes past the hour, every 6 hours, starting at 3AM UTC - - cron: '14 3/6 * * *' - workflow_dispatch: - inputs: - dryRun: - type: boolean - required: false - default: false - description: Dry run (don't create PRs) - debugMode: - type: boolean - required: false - default: false - description: Run Renovate with debug logging -jobs: - renovate: - uses: particular/shared-workflows/.github/workflows/dependency-updates.yml@main - with: - dryRun: ${{ inputs.dryRun || false }} - debugMode: ${{ inputs.debugMode || false }} - secrets: inherit