diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 4318da64..6f98c9c7 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -23,6 +23,7 @@ on: permissions: contents: write + actions: read jobs: release: @@ -36,11 +37,9 @@ jobs: steps: - name: Checkout repository - uses: actions/checkout@v6 + uses: actions/checkout@v4 with: fetch-depth: 0 - # Always checkout the workflow ref (branch/tag selected in the UI or the pushed tag ref). - # Never treat the "tag" input as a git ref. ref: ${{ github.ref }} - name: Show PowerShell version @@ -71,23 +70,70 @@ jobs: shell: pwsh run: | $tag = '${{ steps.tag.outputs.value }}' - # Stable tags: vMAJOR.MINOR.PATCH (e.g. v0.7.0) $isStable = $tag -match '^v\d+\.\d+\.\d+$' - # Pre-release tags: vMAJOR.MINOR.PATCH-