From 6e8e974f03effe12af3798411c9683c53c22090a Mon Sep 17 00:00:00 2001 From: Brian Lalonde Date: Thu, 19 Feb 2026 19:20:48 -0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=94=92=F0=9F=91=BD=20Remove=20old=20or=20?= =?UTF-8?q?unsupported=20action=20dependencies?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - resolves #107 --- .github/workflows/pester.yml | 29 ----------------------------- Export-Readme.ps1 | 1 - README.md | 4 +--- 3 files changed, 1 insertion(+), 33 deletions(-) diff --git a/.github/workflows/pester.yml b/.github/workflows/pester.yml index da5094e..1e0b98d 100644 --- a/.github/workflows/pester.yml +++ b/.github/workflows/pester.yml @@ -45,32 +45,3 @@ jobs: uses: EnricoMi/publish-unit-test-result-action/composite@v2 id: test-results if: always() - - name: Set badge color - if: ${{ matrix.os == 'windows-latest' }} - shell: pwsh - run: | - switch('${{ fromJSON( steps.test-results.outputs.json ).conclusion }}') - { - success {'BADGE_COLOR=31C653' |Add-Content $env:GITHUB_ENV} - failure {'BADGE_COLOR=800000' |Add-Content $env:GITHUB_ENV} - neutral {'BADGE_COLOR=696969' |Add-Content $env:GITHUB_ENV} - } - - name: Create badge - if: ${{ matrix.os == 'windows-latest' }} - uses: emibcn/badge-action@d6f51ff11b5c3382b3b88689ae2d6db22d9737d1 - with: - label: Tests - status: '${{ fromJSON( steps.test-results.outputs.json ).formatted.stats.tests }} tests, ${{ fromJSON( steps.test-results.outputs.json ).formatted.stats.runs }} runs: ${{ fromJSON( steps.test-results.outputs.json ).conclusion }}' - color: ${{ env.BADGE_COLOR }} - path: badge.svg - - name: Upload badge to Gist - # Upload only for original fork and main branch - if: > - matrix.os == 'windows-latest' && github.repository == 'brianary/scripts' && - ((github.event_name == 'workflow_run' && github.event.workflow_run.head_branch == 'main') || - (github.event_name != 'workflow_run' && github.ref == 'refs/heads/main')) - uses: andymckay/append-gist-action@1fbfbbce708a39bd45846f0955ed5521f2099c6d - with: - token: ${{ secrets.GIST_TOKEN }} - gistURL: https://gist.githubusercontent.com/brianary/4642e5c804aa1b40738def5a7c03607a - file: badge.svg diff --git a/Export-Readme.ps1 b/Export-Readme.ps1 index 16fdeef..3de8b90 100644 --- a/Export-Readme.ps1 +++ b/Export-Readme.ps1 @@ -289,7 +289,6 @@ function Format-Readme Useful General-Purpose Scripts ============================== -[![Pester tests status](https://github.com/brianary/scripts/actions/workflows/pester.yml/badge.svg)][pester.yml] [![Pester tests results](https://gist.githubusercontent.com/brianary/4642e5c804aa1b40738def5a7c03607a/raw/badge.svg)][pester.yml] [![Pester tests coverage]($(Get-PesterCoverageBadge -UseLines))](https://github.com/brianary/scripts/tree/main/test) [![GitHub license badge](https://badgen.net/github/license/brianary/Scripts?icon=github)](https://mit-license.org/ "MIT License") diff --git a/README.md b/README.md index a3c947c..308bff7 100644 --- a/README.md +++ b/README.md @@ -1,10 +1,8 @@ Useful General-Purpose Scripts ============================== -[![Pester tests status](https://github.com/brianary/scripts/actions/workflows/pester.yml/badge.svg)][pester.yml] [![Pester tests results](https://gist.githubusercontent.com/brianary/4642e5c804aa1b40738def5a7c03607a/raw/badge.svg)][pester.yml] -[![Pester tests coverage](https://img.shields.io/badge/Pester_coverage-3334_%E2%80%B1-orange -red)](https://github.com/brianary/scripts/tree/main/test) +[![Pester tests coverage](https://img.shields.io/badge/Pester_coverage-3334_%E2%80%B1-orangered)](https://github.com/brianary/scripts/tree/main/test) [![GitHub license badge](https://badgen.net/github/license/brianary/Scripts?icon=github)](https://mit-license.org/ "MIT License") [![GitHub stars badge](https://badgen.net/github/stars/brianary/Scripts?icon=github)](https://github.com/brianary/scripts/stargazers "Stars") [![GitHub watchers badge](https://badgen.net/github/watchers/brianary/Scripts?icon=github)](https://github.com/brianary/scripts/watchers "Watchers")