From 67299e760479438ac5ec14152efc4b68adced7b9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Simon=20W=C3=A5hlin?= Date: Thu, 3 Jul 2025 14:50:08 +0200 Subject: [PATCH 1/4] Update action --- .github/actions/build/action.yml | 10 +++++----- .github/workflows/build.yml | 1 - 2 files changed, 5 insertions(+), 6 deletions(-) diff --git a/.github/actions/build/action.yml b/.github/actions/build/action.yml index 70585b4..f1f5dc9 100644 --- a/.github/actions/build/action.yml +++ b/.github/actions/build/action.yml @@ -12,19 +12,19 @@ runs: dotnet-version: '8.0.x' - name: Install GitVersion - uses: gittools/actions/gitversion/setup@v3.1.11 + uses: gittools/actions/gitversion/setup@v4.0.0 with: - versionSpec: '6.0.x' + versionSpec: '6.3.x' - name: Determine Version id: gitversion - uses: gittools/actions/gitversion/execute@v3.1.11 + uses: gittools/actions/gitversion/execute@v4.0.0 with: - useConfigFile: true + configFilePath: GitVersion.yml - name: Setup assets cache id: assetscache - uses: actions/cache@v3 + uses: actions/cache@v4 with: path: output/RequiredModules key: ${{ hashFiles('RequiredModules.psd1') }} diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 1da5159..3b0c196 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -31,7 +31,6 @@ jobs: - name: Checkout Code uses: actions/checkout@v4 with: - ref: ${{ github.head_ref }} fetch-depth: 0 - name: 'Build and Package Module' From 7830272b29b34b5df58dd3813d39c62e2e055f16 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Simon=20W=C3=A5hlin?= Date: Sat, 5 Jul 2025 21:45:24 +0200 Subject: [PATCH 2/4] Add config to automate changelog updates --- .github/actions/code-coverage/action.yml | 1 - .github/actions/run-tests/action.yml | 1 - .github/workflows/build.yml | 10 +++++----- build.yaml | 13 ++++++++----- 4 files changed, 13 insertions(+), 12 deletions(-) diff --git a/.github/actions/code-coverage/action.yml b/.github/actions/code-coverage/action.yml index dc64a33..643c8fe 100644 --- a/.github/actions/code-coverage/action.yml +++ b/.github/actions/code-coverage/action.yml @@ -8,7 +8,6 @@ runs: steps: - uses: actions/checkout@v4 with: - ref: ${{ github.head_ref }} fetch-depth: 0 - name: Download Test Artifact Linux diff --git a/.github/actions/run-tests/action.yml b/.github/actions/run-tests/action.yml index d96e57e..e02cf39 100644 --- a/.github/actions/run-tests/action.yml +++ b/.github/actions/run-tests/action.yml @@ -8,7 +8,6 @@ runs: steps: - uses: actions/checkout@v4 with: - ref: ${{ github.head_ref }} fetch-depth: 0 - name: Download Build Artifact diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 3b0c196..361e1fc 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -45,7 +45,6 @@ jobs: - name: Checkout Code uses: actions/checkout@v4 with: - ref: ${{ github.head_ref }} fetch-depth: 0 - name: 'Test on Linux' uses: ./.github/actions/run-tests @@ -59,7 +58,6 @@ jobs: - name: Checkout Code uses: actions/checkout@v4 with: - ref: ${{ github.head_ref }} fetch-depth: 0 - name: 'Test on Windows' uses: ./.github/actions/run-tests @@ -76,7 +74,6 @@ jobs: - name: Checkout Code uses: actions/checkout@v4 with: - ref: ${{ github.head_ref }} fetch-depth: 0 - name: 'Publish Code Coverage' uses: ./.github/actions/code-coverage @@ -87,12 +84,15 @@ jobs: needs: - build - test-linux + - test-win - code-coverage + permissions: + contents: write + pull-requests: write steps: - name: Checkout Code uses: actions/checkout@v4 with: - ref: ${{ github.head_ref }} fetch-depth: 0 - name: Download Build Artifact @@ -110,6 +110,6 @@ jobs: - name: Send Changelog PR shell: pwsh - run: Get-Module -Name PowerShellForGitHub -ListAvailable ;./build.ps1 -tasks Create_ChangeLog_GitHub_PR + run: ./build.ps1 -tasks Create_ChangeLog_GitHub_PR env: GitHubToken: ${{ secrets.GITHUB_TOKEN }} diff --git a/build.yaml b/build.yaml index 3198fe4..fcd2ef1 100644 --- a/build.yaml +++ b/build.yaml @@ -130,8 +130,11 @@ TaskHeader: | Write-Build DarkGray " $($Task.InvocationInfo.ScriptName):$($Task.InvocationInfo.ScriptLineNumber)" "" - - - - - +GitHubConfig: + GitHubFilesToAdd: + - 'CHANGELOG.md' + ReleaseAssets: + - output/WikiContent.zip + GitHubConfigUserName: SimonWahlin + GitHubConfigUserEmail: 5576847+SimonWahlin@users.noreply.github.com + UpdateChangelogOnPrerelease: false \ No newline at end of file From c72323e9286230e04beb8b52875b9753827f303c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Simon=20W=C3=A5hlin?= Date: Sat, 5 Jul 2025 21:51:02 +0200 Subject: [PATCH 3/4] Remove release asset configuration --- build.yaml | 2 -- 1 file changed, 2 deletions(-) diff --git a/build.yaml b/build.yaml index fcd2ef1..77a346f 100644 --- a/build.yaml +++ b/build.yaml @@ -133,8 +133,6 @@ TaskHeader: | GitHubConfig: GitHubFilesToAdd: - 'CHANGELOG.md' - ReleaseAssets: - - output/WikiContent.zip GitHubConfigUserName: SimonWahlin GitHubConfigUserEmail: 5576847+SimonWahlin@users.noreply.github.com UpdateChangelogOnPrerelease: false \ No newline at end of file From 0a5b94e9aa023504f3e4ad53ec283fb7b092ff6b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Simon=20W=C3=A5hlin?= Date: Sat, 5 Jul 2025 21:51:10 +0200 Subject: [PATCH 4/4] Update changelog --- CHANGELOG.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 9dac62a..4edaf9b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [Unreleased] +### Added +- Added automation for generating the changelog and release notes + ### Changed - Updated dependency on AzAuth to version 2.5.0