From 07c3e34b784674d62c3293c809b68144ef5128df Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vladim=C3=ADr?= Date: Tue, 6 Feb 2024 17:00:48 +0100 Subject: [PATCH] Fix GitHub Actions (#576) --- .github/workflows/create-prerelase.yml | 3 +++ .github/workflows/create-release.yml | 3 +++ Scripts/2_CreateParentDisks.ps1 | 4 ++-- 3 files changed, 8 insertions(+), 2 deletions(-) diff --git a/.github/workflows/create-prerelase.yml b/.github/workflows/create-prerelase.yml index ce37d26c..c5a43fbc 100644 --- a/.github/workflows/create-prerelase.yml +++ b/.github/workflows/create-prerelase.yml @@ -16,6 +16,9 @@ jobs: name: Create prerelease if: "!contains(github.event.head_commit.message, '[no release]')" runs-on: windows-2019 + permissions: + # needed to create a release + contents: write steps: - uses: actions/checkout@v3 with: diff --git a/.github/workflows/create-release.yml b/.github/workflows/create-release.yml index 8158c15f..ce330a8d 100644 --- a/.github/workflows/create-release.yml +++ b/.github/workflows/create-release.yml @@ -17,6 +17,9 @@ jobs: name: Bump version if: "!contains(github.event.head_commit.message, '[no release]')" runs-on: windows-2019 + permissions: + # needed to create a release + contents: write outputs: previous_tag: ${{ steps.bump.outputs.previous_tag }} new_tag: ${{ steps.bump.outputs.new_tag }} diff --git a/Scripts/2_CreateParentDisks.ps1 b/Scripts/2_CreateParentDisks.ps1 index 51fd5b4f..40e3adde 100644 --- a/Scripts/2_CreateParentDisks.ps1 +++ b/Scripts/2_CreateParentDisks.ps1 @@ -16,7 +16,7 @@ If (-not $isAdmin) { . $PSScriptRoot\0_Shared.ps1 # [!build-include-inline] #Create Unattend for VHD - Function CreateUnattendFileVHD{ + Function CreateUnattendFileVHD { param ( [parameter(Mandatory=$true)] [string] @@ -1239,4 +1239,4 @@ If (!$LabConfig.AutoClosePSWindows) { Read-Host | Out-Null } -#endregion \ No newline at end of file +#endregion