From 640d65cf428ffdd4f2e00191064e1ab635d1968f Mon Sep 17 00:00:00 2001 From: Leith McCombs Date: Thu, 22 Aug 2024 15:08:31 -0700 Subject: [PATCH 01/42] experiment --- .github/workflows/dotnet.yml | 34 ++++++++++++++++++++++++---------- 1 file changed, 24 insertions(+), 10 deletions(-) diff --git a/.github/workflows/dotnet.yml b/.github/workflows/dotnet.yml index 827362f9..f6d7bb13 100644 --- a/.github/workflows/dotnet.yml +++ b/.github/workflows/dotnet.yml @@ -31,15 +31,29 @@ jobs: strategy: matrix: include: - - os: windows-latest - dir_command: gci -Recurse + # - os: windows-latest + # dir_command: gci -Recurse - os: ubuntu-latest dir_command: ls -a -R - - os: macos-latest - dir_command: ls -a -R + # - os: macos-latest + # dir_command: ls -a -R + tag: ${{ fromJson(needs.fetch_tags.outputs.tags) }} steps: - name: Checkout code - uses: actions/checkout@v3 + uses: actions/checkout@v4 + + - name: Get list of tags + run: | + oldest=${{ github.event.inputs.oldest }} + newest=${{ github.event.inputs.newest }} + tags=$(git tag --sort=creatordate "$oldest..$newest") + echo "tagsToUpdate=[$(echo $tags | tr ' ' ',')]" >> $GITHUB_ENV + + - name: fail on purpose + run: | + oldest=${{ givrthub.eventwwfwerfgw.inputs.oldest }} + newest=${{ rv --sort=crscveatordate "$oldest".."$newest") + vcho "tagavoUpdate=[$(echo $tags | tr ' ' ',')]" >> $GITHUB_ENV - name: Setup .NET uses: actions/setup-dotnet@v3 @@ -52,11 +66,11 @@ jobs: - name: Build and Test debug run: | dotnet build --configuration Debug CoseSignTool.sln - dotnet test CoseSign1.Tests/CoseSign1.Tests.csproj - dotnet test CoseSign1.Certificates.Tests/CoseSign1.Certificates.Tests.csproj - dotnet test CoseIndirectSignature.Tests/CoseIndirectSignature.Tests.csproj - dotnet test CoseHandler.Tests/CoseHandler.Tests.csproj - dotnet test CoseSignTool.Tests/CoseSignTool.Tests.csproj --verbosity detailed + dotnet test --no-build --no-restore CoseSign1.Tests/CoseSign1.Tests.csproj + dotnet test --no-build --no-restore CoseSign1.Certificates.Tests/CoseSign1.Certificates.Tests.csproj + dotnet test --no-build --no-restore CoseIndirectSignature.Tests/CoseIndirectSignature.Tests.csproj + dotnet test --no-build --no-restore CoseHandler.Tests/CoseHandler.Tests.csproj + dotnet test --no-build --no-restore CoseSignTool.Tests/CoseSignTool.Tests.csproj --verbosity detailed # List the contents of the working directory to make sure all the artifacts are there. - name: List working directory From 489b07efeee3f8adbb0dbda461898317634220d3 Mon Sep 17 00:00:00 2001 From: Leith McCombs Date: Thu, 22 Aug 2024 15:13:15 -0700 Subject: [PATCH 02/42] tweak --- .github/workflows/dotnet.yml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/dotnet.yml b/.github/workflows/dotnet.yml index f6d7bb13..529ae6d5 100644 --- a/.github/workflows/dotnet.yml +++ b/.github/workflows/dotnet.yml @@ -49,11 +49,11 @@ jobs: tags=$(git tag --sort=creatordate "$oldest..$newest") echo "tagsToUpdate=[$(echo $tags | tr ' ' ',')]" >> $GITHUB_ENV - - name: fail on purpose - run: | - oldest=${{ givrthub.eventwwfwerfgw.inputs.oldest }} - newest=${{ rv --sort=crscveatordate "$oldest".."$newest") - vcho "tagavoUpdate=[$(echo $tags | tr ' ' ',')]" >> $GITHUB_ENV + # - name: fail on purpose + # run: | + # oldest=${{ givrthub.eventwwfwerfgw.inputs.oldest }} + # newest=${{ rv --sort=crscveatordate "$oldest".."$newest") + # vcho "tagavoUpdate=[$(echo $tags | tr ' ' ',')]" >> $GITHUB_ENV - name: Setup .NET uses: actions/setup-dotnet@v3 From 6b5e782c6ad64d762e2ed4f259812d2aca9ad8dd Mon Sep 17 00:00:00 2001 From: Leith McCombs Date: Thu, 22 Aug 2024 15:16:09 -0700 Subject: [PATCH 03/42] kill bad tag --- .github/workflows/dotnet.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/.github/workflows/dotnet.yml b/.github/workflows/dotnet.yml index 529ae6d5..245226f4 100644 --- a/.github/workflows/dotnet.yml +++ b/.github/workflows/dotnet.yml @@ -37,7 +37,6 @@ jobs: dir_command: ls -a -R # - os: macos-latest # dir_command: ls -a -R - tag: ${{ fromJson(needs.fetch_tags.outputs.tags) }} steps: - name: Checkout code uses: actions/checkout@v4 From e33711d89420c784097e7427c67db2b06e99cef0 Mon Sep 17 00:00:00 2001 From: Leith McCombs Date: Thu, 22 Aug 2024 15:20:23 -0700 Subject: [PATCH 04/42] test values --- .github/workflows/dotnet.yml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/dotnet.yml b/.github/workflows/dotnet.yml index 245226f4..f8918ee4 100644 --- a/.github/workflows/dotnet.yml +++ b/.github/workflows/dotnet.yml @@ -43,8 +43,10 @@ jobs: - name: Get list of tags run: | - oldest=${{ github.event.inputs.oldest }} - newest=${{ github.event.inputs.newest }} + # oldest=${{ github.event.inputs.oldest }} + # newest=${{ github.event.inputs.newest }} + oldest="v1.2.6" + newest = "v1.2.6-pre2" tags=$(git tag --sort=creatordate "$oldest..$newest") echo "tagsToUpdate=[$(echo $tags | tr ' ' ',')]" >> $GITHUB_ENV From 8688167d9efe1e6b01b4a87c63604c682ff454d8 Mon Sep 17 00:00:00 2001 From: Leith McCombs Date: Thu, 22 Aug 2024 15:22:54 -0700 Subject: [PATCH 05/42] kill coments --- .github/workflows/dotnet.yml | 2 -- 1 file changed, 2 deletions(-) diff --git a/.github/workflows/dotnet.yml b/.github/workflows/dotnet.yml index f8918ee4..d90bd38e 100644 --- a/.github/workflows/dotnet.yml +++ b/.github/workflows/dotnet.yml @@ -43,8 +43,6 @@ jobs: - name: Get list of tags run: | - # oldest=${{ github.event.inputs.oldest }} - # newest=${{ github.event.inputs.newest }} oldest="v1.2.6" newest = "v1.2.6-pre2" tags=$(git tag --sort=creatordate "$oldest..$newest") From d4140c4d5764cbdf26d1cef37c334fcb68765b39 Mon Sep 17 00:00:00 2001 From: Leith McCombs Date: Fri, 23 Aug 2024 11:08:33 -0700 Subject: [PATCH 06/42] spacing --- .github/workflows/dotnet.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/dotnet.yml b/.github/workflows/dotnet.yml index d90bd38e..30587cb6 100644 --- a/.github/workflows/dotnet.yml +++ b/.github/workflows/dotnet.yml @@ -44,8 +44,8 @@ jobs: - name: Get list of tags run: | oldest="v1.2.6" - newest = "v1.2.6-pre2" - tags=$(git tag --sort=creatordate "$oldest..$newest") + newest="v1.2.6-pre2" + tags=$(git tag --sort=creatordate "v1.2.6 .. v1.2.6-pre2") echo "tagsToUpdate=[$(echo $tags | tr ' ' ',')]" >> $GITHUB_ENV # - name: fail on purpose From 6fbfa63675137d684f0c32556f4ab511b7d875ad Mon Sep 17 00:00:00 2001 From: Leith McCombs Date: Fri, 23 Aug 2024 11:19:44 -0700 Subject: [PATCH 07/42] loop instead of range --- .github/workflows/dotnet.yml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/.github/workflows/dotnet.yml b/.github/workflows/dotnet.yml index 30587cb6..db6fe0f8 100644 --- a/.github/workflows/dotnet.yml +++ b/.github/workflows/dotnet.yml @@ -45,7 +45,13 @@ jobs: run: | oldest="v1.2.6" newest="v1.2.6-pre2" - tags=$(git tag --sort=creatordate "v1.2.6 .. v1.2.6-pre2") + allTags=$(git tag --sort=creatordate) + tagsToUpdate=() + for tag in $allTags; do + if [[ "$tag" >= "$oldest" && "$tag" <= "$newest" ]]; then + tagsToUpdate+=("$tag") + fi + done echo "tagsToUpdate=[$(echo $tags | tr ' ' ',')]" >> $GITHUB_ENV # - name: fail on purpose From 18d9a90b4ee39aee00390f18cbe838cfa72691bd Mon Sep 17 00:00:00 2001 From: Leith McCombs Date: Fri, 23 Aug 2024 11:22:14 -0700 Subject: [PATCH 08/42] remove brackets --- .github/workflows/dotnet.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/dotnet.yml b/.github/workflows/dotnet.yml index db6fe0f8..6f6eaadd 100644 --- a/.github/workflows/dotnet.yml +++ b/.github/workflows/dotnet.yml @@ -48,7 +48,7 @@ jobs: allTags=$(git tag --sort=creatordate) tagsToUpdate=() for tag in $allTags; do - if [[ "$tag" >= "$oldest" && "$tag" <= "$newest" ]]; then + if "$tag" >= "$oldest" && "$tag" <= "$newest"; then tagsToUpdate+=("$tag") fi done From 9f736d79eb605913667f7a859ffc7a2ec179cdab Mon Sep 17 00:00:00 2001 From: Leith McCombs Date: Fri, 23 Aug 2024 11:24:09 -0700 Subject: [PATCH 09/42] check outputs --- .github/workflows/dotnet.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/dotnet.yml b/.github/workflows/dotnet.yml index 6f6eaadd..18bdba58 100644 --- a/.github/workflows/dotnet.yml +++ b/.github/workflows/dotnet.yml @@ -52,6 +52,7 @@ jobs: tagsToUpdate+=("$tag") fi done + echo "tagsToUpdate=[$(echo $tags | tr ' ' ',')]" echo "tagsToUpdate=[$(echo $tags | tr ' ' ',')]" >> $GITHUB_ENV # - name: fail on purpose From 0107de1e0bb320641f6c6fea94dcdc8ba6ac70e9 Mon Sep 17 00:00:00 2001 From: GitHub Action Date: Fri, 23 Aug 2024 18:24:26 +0000 Subject: [PATCH 10/42] Update changelog for release --- CHANGELOG.md | 72 ++++++++++++++++++++++++++++++---------------------- 1 file changed, 42 insertions(+), 30 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index f33c2692..108dc5f9 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,17 @@ # Changelog +## [v1.2.7-pre1](https://github.com/microsoft/CoseSignTool/tree/v1.2.7-pre1) (2024-08-22) + +[Full Changelog](https://github.com/microsoft/CoseSignTool/compare/v1.2.7...v1.2.7-pre1) + +**Merged pull requests:** + +- Create rerelease.yml [\#103](https://github.com/microsoft/CoseSignTool/pull/103) ([lemccomb](https://github.com/lemccomb)) + +## [v1.2.7](https://github.com/microsoft/CoseSignTool/tree/v1.2.7) (2024-08-22) + +[Full Changelog](https://github.com/microsoft/CoseSignTool/compare/v1.2.6-pre2...v1.2.7) + ## [v1.2.6-pre2](https://github.com/microsoft/CoseSignTool/tree/v1.2.6-pre2) (2024-08-22) [Full Changelog](https://github.com/microsoft/CoseSignTool/compare/v1.2.6-pre1...v1.2.6-pre2) @@ -38,19 +50,19 @@ ## [v1.2.5-pre1](https://github.com/microsoft/CoseSignTool/tree/v1.2.5-pre1) (2024-08-14) -[Full Changelog](https://github.com/microsoft/CoseSignTool/compare/v1.2.4-pre3...v1.2.5-pre1) +[Full Changelog](https://github.com/microsoft/CoseSignTool/compare/v1.2.5...v1.2.5-pre1) **Merged pull requests:** - Update package dependencies [\#99](https://github.com/microsoft/CoseSignTool/pull/99) ([lemccomb](https://github.com/lemccomb)) -## [v1.2.4-pre3](https://github.com/microsoft/CoseSignTool/tree/v1.2.4-pre3) (2024-08-06) +## [v1.2.5](https://github.com/microsoft/CoseSignTool/tree/v1.2.5) (2024-08-06) -[Full Changelog](https://github.com/microsoft/CoseSignTool/compare/v1.2.5...v1.2.4-pre3) +[Full Changelog](https://github.com/microsoft/CoseSignTool/compare/v1.2.4-pre3...v1.2.5) -## [v1.2.5](https://github.com/microsoft/CoseSignTool/tree/v1.2.5) (2024-08-06) +## [v1.2.4-pre3](https://github.com/microsoft/CoseSignTool/tree/v1.2.4-pre3) (2024-08-06) -[Full Changelog](https://github.com/microsoft/CoseSignTool/compare/v1.2.4-pre2...v1.2.5) +[Full Changelog](https://github.com/microsoft/CoseSignTool/compare/v1.2.4-pre2...v1.2.4-pre3) **Merged pull requests:** @@ -66,19 +78,19 @@ ## [v1.2.4-pre1](https://github.com/microsoft/CoseSignTool/tree/v1.2.4-pre1) (2024-07-15) -[Full Changelog](https://github.com/microsoft/CoseSignTool/compare/v1.2.4...v1.2.4-pre1) +[Full Changelog](https://github.com/microsoft/CoseSignTool/compare/v1.2.3-pre7...v1.2.4-pre1) **Merged pull requests:** - User/lemccomb/fileread [\#94](https://github.com/microsoft/CoseSignTool/pull/94) ([lemccomb](https://github.com/lemccomb)) -## [v1.2.4](https://github.com/microsoft/CoseSignTool/tree/v1.2.4) (2024-06-14) +## [v1.2.3-pre7](https://github.com/microsoft/CoseSignTool/tree/v1.2.3-pre7) (2024-06-14) -[Full Changelog](https://github.com/microsoft/CoseSignTool/compare/v1.2.3-pre7...v1.2.4) +[Full Changelog](https://github.com/microsoft/CoseSignTool/compare/v1.2.4...v1.2.3-pre7) -## [v1.2.3-pre7](https://github.com/microsoft/CoseSignTool/tree/v1.2.3-pre7) (2024-06-14) +## [v1.2.4](https://github.com/microsoft/CoseSignTool/tree/v1.2.4) (2024-06-14) -[Full Changelog](https://github.com/microsoft/CoseSignTool/compare/v1.2.3-pre6...v1.2.3-pre7) +[Full Changelog](https://github.com/microsoft/CoseSignTool/compare/v1.2.3-pre6...v1.2.4) **Merged pull requests:** @@ -138,7 +150,7 @@ ## [v1.2.1-pre2](https://github.com/microsoft/CoseSignTool/tree/v1.2.1-pre2) (2024-03-15) -[Full Changelog](https://github.com/microsoft/CoseSignTool/compare/v1.2.1-pre1...v1.2.1-pre2) +[Full Changelog](https://github.com/microsoft/CoseSignTool/compare/v1.2.2...v1.2.1-pre2) **Closed issues:** @@ -148,13 +160,13 @@ - more granular error codes [\#86](https://github.com/microsoft/CoseSignTool/pull/86) ([lemccomb](https://github.com/lemccomb)) -## [v1.2.1-pre1](https://github.com/microsoft/CoseSignTool/tree/v1.2.1-pre1) (2024-03-12) +## [v1.2.2](https://github.com/microsoft/CoseSignTool/tree/v1.2.2) (2024-03-12) -[Full Changelog](https://github.com/microsoft/CoseSignTool/compare/v1.2.2...v1.2.1-pre1) +[Full Changelog](https://github.com/microsoft/CoseSignTool/compare/v1.2.1-pre1...v1.2.2) -## [v1.2.2](https://github.com/microsoft/CoseSignTool/tree/v1.2.2) (2024-03-12) +## [v1.2.1-pre1](https://github.com/microsoft/CoseSignTool/tree/v1.2.1-pre1) (2024-03-12) -[Full Changelog](https://github.com/microsoft/CoseSignTool/compare/v1.2.1...v1.2.2) +[Full Changelog](https://github.com/microsoft/CoseSignTool/compare/v1.2.1...v1.2.1-pre1) **Merged pull requests:** @@ -174,15 +186,15 @@ ## [v1.2.exeTest](https://github.com/microsoft/CoseSignTool/tree/v1.2.exeTest) (2024-03-06) -[Full Changelog](https://github.com/microsoft/CoseSignTool/compare/v1.1.8-pre1...v1.2.exeTest) +[Full Changelog](https://github.com/microsoft/CoseSignTool/compare/v1.2.0...v1.2.exeTest) -## [v1.1.8-pre1](https://github.com/microsoft/CoseSignTool/tree/v1.1.8-pre1) (2024-03-04) +## [v1.2.0](https://github.com/microsoft/CoseSignTool/tree/v1.2.0) (2024-03-04) -[Full Changelog](https://github.com/microsoft/CoseSignTool/compare/v1.2.0...v1.1.8-pre1) +[Full Changelog](https://github.com/microsoft/CoseSignTool/compare/v1.1.8-pre1...v1.2.0) -## [v1.2.0](https://github.com/microsoft/CoseSignTool/tree/v1.2.0) (2024-03-04) +## [v1.1.8-pre1](https://github.com/microsoft/CoseSignTool/tree/v1.1.8-pre1) (2024-03-04) -[Full Changelog](https://github.com/microsoft/CoseSignTool/compare/v1.1.8...v1.2.0) +[Full Changelog](https://github.com/microsoft/CoseSignTool/compare/v1.1.8...v1.1.8-pre1) **Merged pull requests:** @@ -210,19 +222,19 @@ ## [v1.1.7-pre1](https://github.com/microsoft/CoseSignTool/tree/v1.1.7-pre1) (2024-02-14) -[Full Changelog](https://github.com/microsoft/CoseSignTool/compare/v1.1.6-pre1...v1.1.7-pre1) +[Full Changelog](https://github.com/microsoft/CoseSignTool/compare/v1.1.7...v1.1.7-pre1) **Merged pull requests:** - Command Line Validation of Indirect Signatures [\#78](https://github.com/microsoft/CoseSignTool/pull/78) ([elantiguamsft](https://github.com/elantiguamsft)) -## [v1.1.6-pre1](https://github.com/microsoft/CoseSignTool/tree/v1.1.6-pre1) (2024-02-07) +## [v1.1.7](https://github.com/microsoft/CoseSignTool/tree/v1.1.7) (2024-02-07) -[Full Changelog](https://github.com/microsoft/CoseSignTool/compare/v1.1.7...v1.1.6-pre1) +[Full Changelog](https://github.com/microsoft/CoseSignTool/compare/v1.1.6-pre1...v1.1.7) -## [v1.1.7](https://github.com/microsoft/CoseSignTool/tree/v1.1.7) (2024-02-07) +## [v1.1.6-pre1](https://github.com/microsoft/CoseSignTool/tree/v1.1.6-pre1) (2024-02-07) -[Full Changelog](https://github.com/microsoft/CoseSignTool/compare/v1.1.6...v1.1.7) +[Full Changelog](https://github.com/microsoft/CoseSignTool/compare/v1.1.6...v1.1.6-pre1) **Merged pull requests:** @@ -286,19 +298,19 @@ ## [v1.1.1-pre1](https://github.com/microsoft/CoseSignTool/tree/v1.1.1-pre1) (2024-01-17) -[Full Changelog](https://github.com/microsoft/CoseSignTool/compare/v1.1.1...v1.1.1-pre1) +[Full Changelog](https://github.com/microsoft/CoseSignTool/compare/v1.1.0-pre7...v1.1.1-pre1) **Merged pull requests:** - Move CreateChangelog to after build in PR build [\#70](https://github.com/microsoft/CoseSignTool/pull/70) ([lemccomb](https://github.com/lemccomb)) -## [v1.1.1](https://github.com/microsoft/CoseSignTool/tree/v1.1.1) (2024-01-12) +## [v1.1.0-pre7](https://github.com/microsoft/CoseSignTool/tree/v1.1.0-pre7) (2024-01-12) -[Full Changelog](https://github.com/microsoft/CoseSignTool/compare/v1.1.0-pre7...v1.1.1) +[Full Changelog](https://github.com/microsoft/CoseSignTool/compare/v1.1.1...v1.1.0-pre7) -## [v1.1.0-pre7](https://github.com/microsoft/CoseSignTool/tree/v1.1.0-pre7) (2024-01-12) +## [v1.1.1](https://github.com/microsoft/CoseSignTool/tree/v1.1.1) (2024-01-12) -[Full Changelog](https://github.com/microsoft/CoseSignTool/compare/v1.1.0-pre6...v1.1.0-pre7) +[Full Changelog](https://github.com/microsoft/CoseSignTool/compare/v1.1.0-pre6...v1.1.1) **Closed issues:** From 81ffa051a3a1362a16c1847a5cca5b6df4e9c10e Mon Sep 17 00:00:00 2001 From: Leith McCombs Date: Fri, 23 Aug 2024 11:26:01 -0700 Subject: [PATCH 11/42] bigger range --- .github/workflows/dotnet.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/dotnet.yml b/.github/workflows/dotnet.yml index 18bdba58..efea3b13 100644 --- a/.github/workflows/dotnet.yml +++ b/.github/workflows/dotnet.yml @@ -43,7 +43,7 @@ jobs: - name: Get list of tags run: | - oldest="v1.2.6" + oldest="v1.2.5" newest="v1.2.6-pre2" allTags=$(git tag --sort=creatordate) tagsToUpdate=() From ee38ec2783ecc99b8e94710e82075e6bda34e836 Mon Sep 17 00:00:00 2001 From: Leith McCombs Date: Fri, 23 Aug 2024 11:29:04 -0700 Subject: [PATCH 12/42] no quotes --- .github/workflows/dotnet.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/dotnet.yml b/.github/workflows/dotnet.yml index efea3b13..2318deb8 100644 --- a/.github/workflows/dotnet.yml +++ b/.github/workflows/dotnet.yml @@ -43,11 +43,12 @@ jobs: - name: Get list of tags run: | - oldest="v1.2.5" - newest="v1.2.6-pre2" + oldest=v1.2.5 + newest=v1.2.6-pre2 allTags=$(git tag --sort=creatordate) tagsToUpdate=() for tag in $allTags; do + echo "Checking tag $tag" if "$tag" >= "$oldest" && "$tag" <= "$newest"; then tagsToUpdate+=("$tag") fi From dacdfef56d101e3084315faee0fc9544975d38a3 Mon Sep 17 00:00:00 2001 From: Leith McCombs Date: Fri, 23 Aug 2024 11:31:23 -0700 Subject: [PATCH 13/42] moreadata --- .github/workflows/dotnet.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/dotnet.yml b/.github/workflows/dotnet.yml index 2318deb8..d8ad8d63 100644 --- a/.github/workflows/dotnet.yml +++ b/.github/workflows/dotnet.yml @@ -46,6 +46,7 @@ jobs: oldest=v1.2.5 newest=v1.2.6-pre2 allTags=$(git tag --sort=creatordate) + echo "allTags is $allTags" tagsToUpdate=() for tag in $allTags; do echo "Checking tag $tag" From 5a07f4d24c2da79e9e993202c8146d78df780cb4 Mon Sep 17 00:00:00 2001 From: Leith McCombs Date: Fri, 23 Aug 2024 11:37:03 -0700 Subject: [PATCH 14/42] --list --sort=version:refname --- .github/workflows/dotnet.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/dotnet.yml b/.github/workflows/dotnet.yml index d8ad8d63..01efb46f 100644 --- a/.github/workflows/dotnet.yml +++ b/.github/workflows/dotnet.yml @@ -45,7 +45,7 @@ jobs: run: | oldest=v1.2.5 newest=v1.2.6-pre2 - allTags=$(git tag --sort=creatordate) + allTags=$(git tag --list --sort=version:refname) echo "allTags is $allTags" tagsToUpdate=() for tag in $allTags; do From 0f656934b4c4ce76a21160565ee90cfbe08b2c39 Mon Sep 17 00:00:00 2001 From: Leith McCombs Date: Fri, 23 Aug 2024 11:42:24 -0700 Subject: [PATCH 15/42] no sort --- .github/workflows/dotnet.yml | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/.github/workflows/dotnet.yml b/.github/workflows/dotnet.yml index 01efb46f..5bd1480d 100644 --- a/.github/workflows/dotnet.yml +++ b/.github/workflows/dotnet.yml @@ -43,14 +43,12 @@ jobs: - name: Get list of tags run: | - oldest=v1.2.5 - newest=v1.2.6-pre2 - allTags=$(git tag --list --sort=version:refname) + allTags=$(git tag --list) echo "allTags is $allTags" tagsToUpdate=() for tag in $allTags; do echo "Checking tag $tag" - if "$tag" >= "$oldest" && "$tag" <= "$newest"; then + if "$tag" >= "v1.2.5" && "$tag" <= "v1.2.6-pre2"; then tagsToUpdate+=("$tag") fi done From 0135085cb1dc1d56a5c0845858c3bf44c4a6f6ee Mon Sep 17 00:00:00 2001 From: Leith McCombs Date: Fri, 23 Aug 2024 11:53:42 -0700 Subject: [PATCH 16/42] fetch first --- .github/workflows/dotnet.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/dotnet.yml b/.github/workflows/dotnet.yml index 5bd1480d..6d028536 100644 --- a/.github/workflows/dotnet.yml +++ b/.github/workflows/dotnet.yml @@ -43,6 +43,7 @@ jobs: - name: Get list of tags run: | + git fetch allTags=$(git tag --list) echo "allTags is $allTags" tagsToUpdate=() From 06447a31f62069e48a0919f36a380072ec988f2e Mon Sep 17 00:00:00 2001 From: Leith McCombs Date: Fri, 23 Aug 2024 11:58:17 -0700 Subject: [PATCH 17/42] restore sort order and variables --- .github/workflows/dotnet.yml | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/.github/workflows/dotnet.yml b/.github/workflows/dotnet.yml index 6d028536..00ac5ee1 100644 --- a/.github/workflows/dotnet.yml +++ b/.github/workflows/dotnet.yml @@ -43,13 +43,15 @@ jobs: - name: Get list of tags run: | - git fetch - allTags=$(git tag --list) + git fetch --quiet + oldest=v1.2.5 + newest=v1.2.6-pre2 + allTags=$(git tag --list --sort=version:refname) echo "allTags is $allTags" tagsToUpdate=() for tag in $allTags; do echo "Checking tag $tag" - if "$tag" >= "v1.2.5" && "$tag" <= "v1.2.6-pre2"; then + if "$tag" >= "$oldest" && "$tag" <= "$newest"; then tagsToUpdate+=("$tag") fi done From 916681513490fb2f1cc7e95753ae47dd5954bc2d Mon Sep 17 00:00:00 2001 From: Leith McCombs Date: Fri, 23 Aug 2024 12:07:42 -0700 Subject: [PATCH 18/42] try inline filter --- .github/workflows/dotnet.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/dotnet.yml b/.github/workflows/dotnet.yml index 00ac5ee1..a8382a1a 100644 --- a/.github/workflows/dotnet.yml +++ b/.github/workflows/dotnet.yml @@ -46,7 +46,7 @@ jobs: git fetch --quiet oldest=v1.2.5 newest=v1.2.6-pre2 - allTags=$(git tag --list --sort=version:refname) + allTags=$(git tag --list --sort=version:refname | $0 >= $oldest && $0 <= $newest) echo "allTags is $allTags" tagsToUpdate=() for tag in $allTags; do From c166f7a94ea3c8a59789888edf704a1165ecb6de Mon Sep 17 00:00:00 2001 From: Leith McCombs Date: Fri, 23 Aug 2024 12:13:34 -0700 Subject: [PATCH 19/42] pipe outside command --- .github/workflows/dotnet.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/dotnet.yml b/.github/workflows/dotnet.yml index a8382a1a..991f459e 100644 --- a/.github/workflows/dotnet.yml +++ b/.github/workflows/dotnet.yml @@ -46,7 +46,7 @@ jobs: git fetch --quiet oldest=v1.2.5 newest=v1.2.6-pre2 - allTags=$(git tag --list --sort=version:refname | $0 >= $oldest && $0 <= $newest) + allTags=$(git tag --list --sort=version:refname) | $0 >= $oldest && $0 <= $newest echo "allTags is $allTags" tagsToUpdate=() for tag in $allTags; do From ceca4efe0ab4cbcd90c06a5a965fe38f71859c0e Mon Sep 17 00:00:00 2001 From: Leith McCombs Date: Fri, 23 Aug 2024 12:29:53 -0700 Subject: [PATCH 20/42] awk --- .github/workflows/dotnet.yml | 2 +- CoseSignTool.sln | 1 + re-release.yml | 112 +++++++++++++++++++++++++++++++++++ 3 files changed, 114 insertions(+), 1 deletion(-) create mode 100644 re-release.yml diff --git a/.github/workflows/dotnet.yml b/.github/workflows/dotnet.yml index 991f459e..8c7092e1 100644 --- a/.github/workflows/dotnet.yml +++ b/.github/workflows/dotnet.yml @@ -46,7 +46,7 @@ jobs: git fetch --quiet oldest=v1.2.5 newest=v1.2.6-pre2 - allTags=$(git tag --list --sort=version:refname) | $0 >= $oldest && $0 <= $newest + allTags=[$(git tag --list --sort=version:refname) | awk -v old="$oldest" -v new="$newest" '$0 >= old && $0 <= new'] echo "allTags is $allTags" tagsToUpdate=() for tag in $allTags; do diff --git a/CoseSignTool.sln b/CoseSignTool.sln index 7fb758c3..bd37eade 100644 --- a/CoseSignTool.sln +++ b/CoseSignTool.sln @@ -60,6 +60,7 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Workflows", "Workflows", "{ .github\workflows\dependency-review.yml = .github\workflows\dependency-review.yml .github\workflows\dotnet.yml = .github\workflows\dotnet.yml .github\workflows\OpenPR.yml = .github\workflows\OpenPR.yml + re-release.yml = re-release.yml EndProjectSection EndProject Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "CoseSign1.Headers", "CoseSign1.Headers\CoseSign1.Headers.csproj", "{DE822040-D5AB-41C8-83B2-4938FF00C7E5}" diff --git a/re-release.yml b/re-release.yml new file mode 100644 index 00000000..1eaefb33 --- /dev/null +++ b/re-release.yml @@ -0,0 +1,112 @@ +#### Re-release Assets #### +# This workflow exists solely to replace the zip files on existing releases, and should only be run manually. +# It updates all of the releases in the given range. + +name: Re-release Assets +on: + workflow_dispatch: + inputs: + oldest: + description: 'Oldest release to include' + required: true + default: 'v0.3.1' + newest: + description: 'Newest release to include' + required: true + default: 'current' + +jobs: + release_assets_by_tag: + name: release-assets + runs-on: ${{ matrix.os }} + permissions: + actions: write + contents: write + deployments: write + packages: write + pull-requests: write + security-events: write + statuses: write + strategy: + matrix: + include: + - os: windows-latest + dir_command: gci -Recurse + zip_command_debug: Compress-Archive -Path ./debug/ -DestinationPath CoseSignTool-Windows-debug.zip + zip_command_release: Compress-Archive -Path ./release/ -DestinationPath CoseSignTool-Windows-release.zip + - os: ubuntu-latest + dir_command: ls -a -R + zip_command_debug: zip -r CoseSignTool-Linux-debug.zip ./debug/ + zip_command_release: zip -r CoseSignTool-Linux-release.zip ./release/ + - os: macos-latest + dir_command: ls -a -R + zip_command_debug: zip -r CoseSignTool-MacOS-debug.zip ./debug/ + zip_command_release: zip -r CoseSignTool-MacOS-release.zip ./release/ + + steps: + # Checkout the branch. + - name: Checkout repository + uses: actions/checkout@v4 + + - name: Get list of tags + run: | + oldest=${{ github.event.inputs.oldest }} + newest=${{ github.event.inputs.newest }} + tags=$(git tag --sort=creatordate "$oldest".."$newest") + echo "tagsToUpdate=[$(echo $tags | tr ' ' ',')]" >> $GITHUB_ENV + + - name: Release assets for selected tags + run: | + for tag in ${{ env.tagsToUpdate }}; do + echo "**** Release $tag ****\n******************************\n" + + # Run checkout action + echo "::group::Checkout" + echo "Checkout tagged release" + - name: Checkout tagged release + uses: actions/checkout@v4 + with: + ref: $tag + echo "::endgroup::" + + # Build and publish the binaries to ./published. + echo "::group::Publish" + echo "Build and publish" + dotnet publish --configuration Debug --self-contained true --output published/debug CoseSignTool/CoseSignTool.csproj + dotnet publish --configuration Release --self-contained true --output published/release CoseSignTool/CoseSignTool.csproj + # Self-contained is needed. Must use .csproj instead of .sln. + echo "::endgroup::" + + # Copy the docs, license, and markdown files to the release folders. + echo "::group::Copy" + echo "Copy documentation" + for folder in debug release; do + mkdir -p published/$folder/docs + cp -r docs/* published/$folder/docs/ + cp -r LICENSE published/$folder/ + cp -r *.md published/$folder/ + done + echo "::endgroup::" + + # Create zip files for release. + echo "::group::Zips" + echo "Create zip files for the release" + ${{ matrix.zip_command_debug }} + ${{ matrix.zip_command_release }} + ${{ matrix.dir_command }} + echo "::endgroup::" + + # Upload the zipped assets to the release. + echo "::group::Upload" + echo "Upload .zip files to Github" + - name: Upload artifacts + id: upload + uses: svenstaro/upload-release-action@v2 + with: + repo_token: ${{ secrets.GITHUB_TOKEN }} + file: ./published/CoseSignTool-*.zip + file_glob: true + overwrite: true + tag: ${{ needs.create_release.outputs.tag_name }} + echo "::endgroup::" + done From 24874a12629828bec9ebace1af37802466358490 Mon Sep 17 00:00:00 2001 From: Leith McCombs Date: Fri, 23 Aug 2024 12:30:40 -0700 Subject: [PATCH 21/42] awk --- .github/workflows/dotnet.yml | 2 +- CoseSignTool.sln | 1 - re-release.yml | 112 ----------------------------------- 3 files changed, 1 insertion(+), 114 deletions(-) delete mode 100644 re-release.yml diff --git a/.github/workflows/dotnet.yml b/.github/workflows/dotnet.yml index 8c7092e1..b04f06cc 100644 --- a/.github/workflows/dotnet.yml +++ b/.github/workflows/dotnet.yml @@ -46,7 +46,7 @@ jobs: git fetch --quiet oldest=v1.2.5 newest=v1.2.6-pre2 - allTags=[$(git tag --list --sort=version:refname) | awk -v old="$oldest" -v new="$newest" '$0 >= old && $0 <= new'] + allTags=$(git tag --list --sort=version:refname) | awk -v old="$oldest" -v new="$newest" '$0 >= old && $0 <= new' echo "allTags is $allTags" tagsToUpdate=() for tag in $allTags; do diff --git a/CoseSignTool.sln b/CoseSignTool.sln index bd37eade..7fb758c3 100644 --- a/CoseSignTool.sln +++ b/CoseSignTool.sln @@ -60,7 +60,6 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Workflows", "Workflows", "{ .github\workflows\dependency-review.yml = .github\workflows\dependency-review.yml .github\workflows\dotnet.yml = .github\workflows\dotnet.yml .github\workflows\OpenPR.yml = .github\workflows\OpenPR.yml - re-release.yml = re-release.yml EndProjectSection EndProject Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "CoseSign1.Headers", "CoseSign1.Headers\CoseSign1.Headers.csproj", "{DE822040-D5AB-41C8-83B2-4938FF00C7E5}" diff --git a/re-release.yml b/re-release.yml deleted file mode 100644 index 1eaefb33..00000000 --- a/re-release.yml +++ /dev/null @@ -1,112 +0,0 @@ -#### Re-release Assets #### -# This workflow exists solely to replace the zip files on existing releases, and should only be run manually. -# It updates all of the releases in the given range. - -name: Re-release Assets -on: - workflow_dispatch: - inputs: - oldest: - description: 'Oldest release to include' - required: true - default: 'v0.3.1' - newest: - description: 'Newest release to include' - required: true - default: 'current' - -jobs: - release_assets_by_tag: - name: release-assets - runs-on: ${{ matrix.os }} - permissions: - actions: write - contents: write - deployments: write - packages: write - pull-requests: write - security-events: write - statuses: write - strategy: - matrix: - include: - - os: windows-latest - dir_command: gci -Recurse - zip_command_debug: Compress-Archive -Path ./debug/ -DestinationPath CoseSignTool-Windows-debug.zip - zip_command_release: Compress-Archive -Path ./release/ -DestinationPath CoseSignTool-Windows-release.zip - - os: ubuntu-latest - dir_command: ls -a -R - zip_command_debug: zip -r CoseSignTool-Linux-debug.zip ./debug/ - zip_command_release: zip -r CoseSignTool-Linux-release.zip ./release/ - - os: macos-latest - dir_command: ls -a -R - zip_command_debug: zip -r CoseSignTool-MacOS-debug.zip ./debug/ - zip_command_release: zip -r CoseSignTool-MacOS-release.zip ./release/ - - steps: - # Checkout the branch. - - name: Checkout repository - uses: actions/checkout@v4 - - - name: Get list of tags - run: | - oldest=${{ github.event.inputs.oldest }} - newest=${{ github.event.inputs.newest }} - tags=$(git tag --sort=creatordate "$oldest".."$newest") - echo "tagsToUpdate=[$(echo $tags | tr ' ' ',')]" >> $GITHUB_ENV - - - name: Release assets for selected tags - run: | - for tag in ${{ env.tagsToUpdate }}; do - echo "**** Release $tag ****\n******************************\n" - - # Run checkout action - echo "::group::Checkout" - echo "Checkout tagged release" - - name: Checkout tagged release - uses: actions/checkout@v4 - with: - ref: $tag - echo "::endgroup::" - - # Build and publish the binaries to ./published. - echo "::group::Publish" - echo "Build and publish" - dotnet publish --configuration Debug --self-contained true --output published/debug CoseSignTool/CoseSignTool.csproj - dotnet publish --configuration Release --self-contained true --output published/release CoseSignTool/CoseSignTool.csproj - # Self-contained is needed. Must use .csproj instead of .sln. - echo "::endgroup::" - - # Copy the docs, license, and markdown files to the release folders. - echo "::group::Copy" - echo "Copy documentation" - for folder in debug release; do - mkdir -p published/$folder/docs - cp -r docs/* published/$folder/docs/ - cp -r LICENSE published/$folder/ - cp -r *.md published/$folder/ - done - echo "::endgroup::" - - # Create zip files for release. - echo "::group::Zips" - echo "Create zip files for the release" - ${{ matrix.zip_command_debug }} - ${{ matrix.zip_command_release }} - ${{ matrix.dir_command }} - echo "::endgroup::" - - # Upload the zipped assets to the release. - echo "::group::Upload" - echo "Upload .zip files to Github" - - name: Upload artifacts - id: upload - uses: svenstaro/upload-release-action@v2 - with: - repo_token: ${{ secrets.GITHUB_TOKEN }} - file: ./published/CoseSignTool-*.zip - file_glob: true - overwrite: true - tag: ${{ needs.create_release.outputs.tag_name }} - echo "::endgroup::" - done From ee5d38b241730b965e43fc6ca1002d0f5342997a Mon Sep 17 00:00:00 2001 From: Leith McCombs Date: Fri, 23 Aug 2024 12:46:28 -0700 Subject: [PATCH 22/42] short awk syntax --- .github/workflows/dotnet.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/dotnet.yml b/.github/workflows/dotnet.yml index b04f06cc..8b0528d1 100644 --- a/.github/workflows/dotnet.yml +++ b/.github/workflows/dotnet.yml @@ -46,7 +46,7 @@ jobs: git fetch --quiet oldest=v1.2.5 newest=v1.2.6-pre2 - allTags=$(git tag --list --sort=version:refname) | awk -v old="$oldest" -v new="$newest" '$0 >= old && $0 <= new' + allTags=$(git tag --list --sort=version:refname | awk -v old="$oldest" -v new="$newest" '$0 >= old && $0 <= new') echo "allTags is $allTags" tagsToUpdate=() for tag in $allTags; do From d752ab3988d4ce2a3f32473ad4dee59cfccef135 Mon Sep 17 00:00:00 2001 From: Leith McCombs Date: Fri, 23 Aug 2024 12:49:31 -0700 Subject: [PATCH 23/42] trim dead code --- .github/workflows/dotnet.yml | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) diff --git a/.github/workflows/dotnet.yml b/.github/workflows/dotnet.yml index 8b0528d1..e575d473 100644 --- a/.github/workflows/dotnet.yml +++ b/.github/workflows/dotnet.yml @@ -43,18 +43,10 @@ jobs: - name: Get list of tags run: | - git fetch --quiet oldest=v1.2.5 newest=v1.2.6-pre2 - allTags=$(git tag --list --sort=version:refname | awk -v old="$oldest" -v new="$newest" '$0 >= old && $0 <= new') - echo "allTags is $allTags" - tagsToUpdate=() - for tag in $allTags; do - echo "Checking tag $tag" - if "$tag" >= "$oldest" && "$tag" <= "$newest"; then - tagsToUpdate+=("$tag") - fi - done + git fetch --quiet + tags=$(git tag --list --sort=version:refname | awk '/$oldest/, /$newest/') echo "tagsToUpdate=[$(echo $tags | tr ' ' ',')]" echo "tagsToUpdate=[$(echo $tags | tr ' ' ',')]" >> $GITHUB_ENV From ec6ffd95f197c77edef681172b36172b1f030c15 Mon Sep 17 00:00:00 2001 From: Leith McCombs Date: Fri, 23 Aug 2024 12:52:45 -0700 Subject: [PATCH 24/42] check array output --- .github/workflows/dotnet.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/dotnet.yml b/.github/workflows/dotnet.yml index e575d473..11f69491 100644 --- a/.github/workflows/dotnet.yml +++ b/.github/workflows/dotnet.yml @@ -46,9 +46,9 @@ jobs: oldest=v1.2.5 newest=v1.2.6-pre2 git fetch --quiet - tags=$(git tag --list --sort=version:refname | awk '/$oldest/, /$newest/') - echo "tagsToUpdate=[$(echo $tags | tr ' ' ',')]" - echo "tagsToUpdate=[$(echo $tags | tr ' ' ',')]" >> $GITHUB_ENV + tags=$(git tag --list --sort=version:refname | awk '/$oldest/, /$newest/' | tr ' ' ',') + echo "tagsToUpdate=$tags" + echo "tagsToUpdate=[$(echo $tags)]" >> $GITHUB_ENV # - name: fail on purpose # run: | From f38703f02e5a41260f2c34f13e7c37a19989f40c Mon Sep 17 00:00:00 2001 From: Leith McCombs Date: Fri, 23 Aug 2024 13:22:02 -0700 Subject: [PATCH 25/42] validate env output --- .github/workflows/dotnet.yml | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/.github/workflows/dotnet.yml b/.github/workflows/dotnet.yml index 11f69491..3ec816e2 100644 --- a/.github/workflows/dotnet.yml +++ b/.github/workflows/dotnet.yml @@ -46,10 +46,18 @@ jobs: oldest=v1.2.5 newest=v1.2.6-pre2 git fetch --quiet - tags=$(git tag --list --sort=version:refname | awk '/$oldest/, /$newest/' | tr ' ' ',') - echo "tagsToUpdate=$tags" - echo "tagsToUpdate=[$(echo $tags)]" >> $GITHUB_ENV - + tags=$(git tag --list --sort=version:refname | awk '/$oldest/, /$newest/') + echo "tags = $tags" + echo "tagsToUpdate=[$(echo $tags | tr ' ' ',')]" >> $GITHUB_ENV + + - name: Log each tag in tagsToUpdate + run: | + for tag in $(echo $tagsToUpdate | tr ',' ' '); do + echo "Tag: $tag" + done + env: + tagsToUpdate: ${{ env.tagsToUpdate }} + # - name: fail on purpose # run: | # oldest=${{ givrthub.eventwwfwerfgw.inputs.oldest }} From 44f54e599fede270e0c3928c5bebf768c6a79a43 Mon Sep 17 00:00:00 2001 From: Leith McCombs Date: Fri, 23 Aug 2024 13:27:43 -0700 Subject: [PATCH 26/42] longform awk --- .github/workflows/dotnet.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/dotnet.yml b/.github/workflows/dotnet.yml index 3ec816e2..c5bc7a34 100644 --- a/.github/workflows/dotnet.yml +++ b/.github/workflows/dotnet.yml @@ -46,7 +46,7 @@ jobs: oldest=v1.2.5 newest=v1.2.6-pre2 git fetch --quiet - tags=$(git tag --list --sort=version:refname | awk '/$oldest/, /$newest/') + tags=$(git tag --list --sort=version:refname | awk -v old="$oldest" -v new="$newest" '$0 >= old && $0 <= new') echo "tags = $tags" echo "tagsToUpdate=[$(echo $tags | tr ' ' ',')]" >> $GITHUB_ENV From e2a4cf25f74e26bbec9fced3ea586d1ab9f6050a Mon Sep 17 00:00:00 2001 From: Leith McCombs Date: Fri, 23 Aug 2024 13:40:48 -0700 Subject: [PATCH 27/42] remove brackets --- .github/workflows/dotnet.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/dotnet.yml b/.github/workflows/dotnet.yml index c5bc7a34..be0ba1e6 100644 --- a/.github/workflows/dotnet.yml +++ b/.github/workflows/dotnet.yml @@ -48,7 +48,7 @@ jobs: git fetch --quiet tags=$(git tag --list --sort=version:refname | awk -v old="$oldest" -v new="$newest" '$0 >= old && $0 <= new') echo "tags = $tags" - echo "tagsToUpdate=[$(echo $tags | tr ' ' ',')]" >> $GITHUB_ENV + echo "tagsToUpdate=$(echo $tags | tr ' ' ',')" >> $GITHUB_ENV - name: Log each tag in tagsToUpdate run: | From 4e97c5bbcffcb7cfca47affd3c006760a67d8798 Mon Sep 17 00:00:00 2001 From: Leith McCombs Date: Fri, 23 Aug 2024 13:41:48 -0700 Subject: [PATCH 28/42] remove tr --- .github/workflows/dotnet.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/dotnet.yml b/.github/workflows/dotnet.yml index be0ba1e6..0c8c123a 100644 --- a/.github/workflows/dotnet.yml +++ b/.github/workflows/dotnet.yml @@ -48,11 +48,11 @@ jobs: git fetch --quiet tags=$(git tag --list --sort=version:refname | awk -v old="$oldest" -v new="$newest" '$0 >= old && $0 <= new') echo "tags = $tags" - echo "tagsToUpdate=$(echo $tags | tr ' ' ',')" >> $GITHUB_ENV + echo "tagsToUpdate=$(echo $tags)" >> $GITHUB_ENV - name: Log each tag in tagsToUpdate run: | - for tag in $(echo $tagsToUpdate | tr ',' ' '); do + for tag in $(echo $tagsToUpdate); do echo "Tag: $tag" done env: From e74fc04545fd5bf7d3785a89f64ce1484cdfb402 Mon Sep 17 00:00:00 2001 From: Leith McCombs Date: Fri, 23 Aug 2024 13:49:41 -0700 Subject: [PATCH 29/42] try other receiving syntax --- .github/workflows/dotnet.yml | 2 +- .github/workflows/rerelease.yml | 6 ++++-- CoseSignTool.sln | 1 + 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/.github/workflows/dotnet.yml b/.github/workflows/dotnet.yml index 0c8c123a..13b747d9 100644 --- a/.github/workflows/dotnet.yml +++ b/.github/workflows/dotnet.yml @@ -52,7 +52,7 @@ jobs: - name: Log each tag in tagsToUpdate run: | - for tag in $(echo $tagsToUpdate); do + for tag in ${{ env.tagsToUpdate }}; do echo "Tag: $tag" done env: diff --git a/.github/workflows/rerelease.yml b/.github/workflows/rerelease.yml index 1eaefb33..d0cb0c73 100644 --- a/.github/workflows/rerelease.yml +++ b/.github/workflows/rerelease.yml @@ -52,8 +52,10 @@ jobs: run: | oldest=${{ github.event.inputs.oldest }} newest=${{ github.event.inputs.newest }} - tags=$(git tag --sort=creatordate "$oldest".."$newest") - echo "tagsToUpdate=[$(echo $tags | tr ' ' ',')]" >> $GITHUB_ENV + git fetch --quiet + tags=$(git tag --list --sort=version:refname | awk -v old="$oldest" -v new="$newest" '$0 >= old && $0 <= new') + echo "tags = $tags" + echo "tagsToUpdate=$(echo $tags)" >> $GITHUB_ENV - name: Release assets for selected tags run: | diff --git a/CoseSignTool.sln b/CoseSignTool.sln index 7fb758c3..fec24e86 100644 --- a/CoseSignTool.sln +++ b/CoseSignTool.sln @@ -60,6 +60,7 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Workflows", "Workflows", "{ .github\workflows\dependency-review.yml = .github\workflows\dependency-review.yml .github\workflows\dotnet.yml = .github\workflows\dotnet.yml .github\workflows\OpenPR.yml = .github\workflows\OpenPR.yml + .github\workflows\rerelease.yml = .github\workflows\rerelease.yml EndProjectSection EndProject Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "CoseSign1.Headers", "CoseSign1.Headers\CoseSign1.Headers.csproj", "{DE822040-D5AB-41C8-83B2-4938FF00C7E5}" From b3807913d7aa201a49488fc9af841887d4f75402 Mon Sep 17 00:00:00 2001 From: Leith McCombs Date: Fri, 23 Aug 2024 13:52:10 -0700 Subject: [PATCH 30/42] del env line --- .github/workflows/dotnet.yml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/.github/workflows/dotnet.yml b/.github/workflows/dotnet.yml index 13b747d9..f022b43a 100644 --- a/.github/workflows/dotnet.yml +++ b/.github/workflows/dotnet.yml @@ -55,8 +55,7 @@ jobs: for tag in ${{ env.tagsToUpdate }}; do echo "Tag: $tag" done - env: - tagsToUpdate: ${{ env.tagsToUpdate }} + # - name: fail on purpose # run: | From 6ce01c490199ec4ddbb79f51ba201acb7b4b4629 Mon Sep 17 00:00:00 2001 From: Leith McCombs Date: Fri, 23 Aug 2024 13:54:56 -0700 Subject: [PATCH 31/42] add action --- .github/workflows/dotnet.yml | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/.github/workflows/dotnet.yml b/.github/workflows/dotnet.yml index f022b43a..486945ac 100644 --- a/.github/workflows/dotnet.yml +++ b/.github/workflows/dotnet.yml @@ -53,7 +53,16 @@ jobs: - name: Log each tag in tagsToUpdate run: | for tag in ${{ env.tagsToUpdate }}; do - echo "Tag: $tag" + echo "**** Release $tag ****\n******************************\n" + + # Run checkout action + echo "::group::Checkout" + echo "Checkout tagged release" + - name: Checkout tagged release + uses: actions/checkout@v4 + with: + ref: $tag + echo "::endgroup::" done From 1efaec70d9493ebd08bcd9e9e475a6e0e48ede57 Mon Sep 17 00:00:00 2001 From: Leith McCombs Date: Fri, 23 Aug 2024 14:49:41 -0700 Subject: [PATCH 32/42] validate nested for loop --- .github/workflows/dotnet.yml | 19 ++++++++----------- .github/workflows/rerelease.yml | 14 ++++++++++++++ 2 files changed, 22 insertions(+), 11 deletions(-) diff --git a/.github/workflows/dotnet.yml b/.github/workflows/dotnet.yml index 486945ac..3ecf15b0 100644 --- a/.github/workflows/dotnet.yml +++ b/.github/workflows/dotnet.yml @@ -45,7 +45,7 @@ jobs: run: | oldest=v1.2.5 newest=v1.2.6-pre2 - git fetch --quiet + git fetch --tags --quiet tags=$(git tag --list --sort=version:refname | awk -v old="$oldest" -v new="$newest" '$0 >= old && $0 <= new') echo "tags = $tags" echo "tagsToUpdate=$(echo $tags)" >> $GITHUB_ENV @@ -53,16 +53,13 @@ jobs: - name: Log each tag in tagsToUpdate run: | for tag in ${{ env.tagsToUpdate }}; do - echo "**** Release $tag ****\n******************************\n" - - # Run checkout action - echo "::group::Checkout" - echo "Checkout tagged release" - - name: Checkout tagged release - uses: actions/checkout@v4 - with: - ref: $tag - echo "::endgroup::" + echo "**** Checkout $tag ****" + git fetch --tags + git checkout "$tag" + for tag2 in ${{ env.tagsToUpdate }}; do + echo "tag2 is $tag2" + done + echo "**** Build and publish $tag ****" done diff --git a/.github/workflows/rerelease.yml b/.github/workflows/rerelease.yml index d0cb0c73..079e252b 100644 --- a/.github/workflows/rerelease.yml +++ b/.github/workflows/rerelease.yml @@ -62,6 +62,20 @@ jobs: for tag in ${{ env.tagsToUpdate }}; do echo "**** Release $tag ****\n******************************\n" + + echo "**** Checkout $tag ****" + git fetch --tags + git checkout "$tag" + echo "**** Build and publish $tag ****" + dotnet publish --configuration Debug --self-contained true --output published/debug CoseSignTool/CoseSignTool.csproj + dotnet publish --configuration Release --self-contained true --output published/release CoseSignTool/CoseSignTool.csproj + echo "**** Copy documentation for $tag ****" + for folder in debug release; do + mkdir -p published/$folder/docs + cp -r docs/* published/$folder/docs/ + cp -r LICENSE published/$folder/ + cp -r *.md published/$folder/ + # Run checkout action echo "::group::Checkout" echo "Checkout tagged release" From d1e5a6fb65690884f127c222bf9963004460e5cf Mon Sep 17 00:00:00 2001 From: Leith McCombs Date: Fri, 23 Aug 2024 14:52:05 -0700 Subject: [PATCH 33/42] Trya adding a blank line --- .github/workflows/dotnet.yml | 1 + .github/workflows/rerelease.yml | 5 +---- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/.github/workflows/dotnet.yml b/.github/workflows/dotnet.yml index 3ecf15b0..cadf4c70 100644 --- a/.github/workflows/dotnet.yml +++ b/.github/workflows/dotnet.yml @@ -56,6 +56,7 @@ jobs: echo "**** Checkout $tag ****" git fetch --tags git checkout "$tag" + for tag2 in ${{ env.tagsToUpdate }}; do echo "tag2 is $tag2" done diff --git a/.github/workflows/rerelease.yml b/.github/workflows/rerelease.yml index 079e252b..3dea82b5 100644 --- a/.github/workflows/rerelease.yml +++ b/.github/workflows/rerelease.yml @@ -60,10 +60,7 @@ jobs: - name: Release assets for selected tags run: | for tag in ${{ env.tagsToUpdate }}; do - echo "**** Release $tag ****\n******************************\n" - - - echo "**** Checkout $tag ****" + echo "**** Checkout $tag ****" git fetch --tags git checkout "$tag" echo "**** Build and publish $tag ****" From cb76a793d24f1d09d9c0898d0ff0c30ba4a8de8c Mon Sep 17 00:00:00 2001 From: Leith McCombs Date: Fri, 23 Aug 2024 15:17:44 -0700 Subject: [PATCH 34/42] Move script to release job --- .github/workflows/dotnet.yml | 38 +++-------------------- .github/workflows/rerelease.yml | 55 +++++---------------------------- 2 files changed, 11 insertions(+), 82 deletions(-) diff --git a/.github/workflows/dotnet.yml b/.github/workflows/dotnet.yml index cadf4c70..b32fdb3e 100644 --- a/.github/workflows/dotnet.yml +++ b/.github/workflows/dotnet.yml @@ -31,45 +31,16 @@ jobs: strategy: matrix: include: - # - os: windows-latest - # dir_command: gci -Recurse + - os: windows-latest + dir_command: gci -Recurse - os: ubuntu-latest dir_command: ls -a -R - # - os: macos-latest - # dir_command: ls -a -R + - os: macos-latest + dir_command: ls -a -R steps: - name: Checkout code uses: actions/checkout@v4 - - name: Get list of tags - run: | - oldest=v1.2.5 - newest=v1.2.6-pre2 - git fetch --tags --quiet - tags=$(git tag --list --sort=version:refname | awk -v old="$oldest" -v new="$newest" '$0 >= old && $0 <= new') - echo "tags = $tags" - echo "tagsToUpdate=$(echo $tags)" >> $GITHUB_ENV - - - name: Log each tag in tagsToUpdate - run: | - for tag in ${{ env.tagsToUpdate }}; do - echo "**** Checkout $tag ****" - git fetch --tags - git checkout "$tag" - - for tag2 in ${{ env.tagsToUpdate }}; do - echo "tag2 is $tag2" - done - echo "**** Build and publish $tag ****" - done - - - # - name: fail on purpose - # run: | - # oldest=${{ givrthub.eventwwfwerfgw.inputs.oldest }} - # newest=${{ rv --sort=crscveatordate "$oldest".."$newest") - # vcho "tagavoUpdate=[$(echo $tags | tr ' ' ',')]" >> $GITHUB_ENV - - name: Setup .NET uses: actions/setup-dotnet@v3 with: @@ -77,7 +48,6 @@ jobs: # Use the Dotnet Test command to load dependencies, build, and test the code. # We have to run the test projects individually so CoseSignTool.Tests can run under arm64 on the Mac runner. - # TODO: Remove the dotnet publish commands once we know they work. - name: Build and Test debug run: | dotnet build --configuration Debug CoseSignTool.sln diff --git a/.github/workflows/rerelease.yml b/.github/workflows/rerelease.yml index 3dea82b5..b0c4e4ff 100644 --- a/.github/workflows/rerelease.yml +++ b/.github/workflows/rerelease.yml @@ -44,7 +44,6 @@ jobs: zip_command_release: zip -r CoseSignTool-MacOS-release.zip ./release/ steps: - # Checkout the branch. - name: Checkout repository uses: actions/checkout@v4 @@ -59,67 +58,27 @@ jobs: - name: Release assets for selected tags run: | + git fetch --tags for tag in ${{ env.tagsToUpdate }}; do - echo "**** Checkout $tag ****" - git fetch --tags - git checkout "$tag" echo "**** Build and publish $tag ****" + git checkout "$tag" dotnet publish --configuration Debug --self-contained true --output published/debug CoseSignTool/CoseSignTool.csproj dotnet publish --configuration Release --self-contained true --output published/release CoseSignTool/CoseSignTool.csproj - echo "**** Copy documentation for $tag ****" - for folder in debug release; do - mkdir -p published/$folder/docs - cp -r docs/* published/$folder/docs/ - cp -r LICENSE published/$folder/ - cp -r *.md published/$folder/ - - # Run checkout action - echo "::group::Checkout" - echo "Checkout tagged release" - - name: Checkout tagged release - uses: actions/checkout@v4 - with: - ref: $tag - echo "::endgroup::" - - # Build and publish the binaries to ./published. - echo "::group::Publish" - echo "Build and publish" - dotnet publish --configuration Debug --self-contained true --output published/debug CoseSignTool/CoseSignTool.csproj - dotnet publish --configuration Release --self-contained true --output published/release CoseSignTool/CoseSignTool.csproj - # Self-contained is needed. Must use .csproj instead of .sln. - echo "::endgroup::" - # Copy the docs, license, and markdown files to the release folders. - echo "::group::Copy" - echo "Copy documentation" + echo "**** Copy documentation for $tag ****" for folder in debug release; do mkdir -p published/$folder/docs cp -r docs/* published/$folder/docs/ cp -r LICENSE published/$folder/ cp -r *.md published/$folder/ done - echo "::endgroup::" - # Create zip files for release. - echo "::group::Zips" - echo "Create zip files for the release" + echo "**** Create zip files for $tag ****" ${{ matrix.zip_command_debug }} ${{ matrix.zip_command_release }} ${{ matrix.dir_command }} - echo "::endgroup::" - # Upload the zipped assets to the release. - echo "::group::Upload" - echo "Upload .zip files to Github" - - name: Upload artifacts - id: upload - uses: svenstaro/upload-release-action@v2 - with: - repo_token: ${{ secrets.GITHUB_TOKEN }} - file: ./published/CoseSignTool-*.zip - file_glob: true - overwrite: true - tag: ${{ needs.create_release.outputs.tag_name }} - echo "::endgroup::" + echo "**** Upload zip files to GitHub ****" + gh release upload $tag ./published/CoseSignTool-*.zip + done From 72e3bc46eebc3210f4a8fef664d4781e49b7bdcc Mon Sep 17 00:00:00 2001 From: Leith McCombs Date: Fri, 23 Aug 2024 15:31:45 -0700 Subject: [PATCH 35/42] build from csproj instead of sln --- .github/workflows/dotnet.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/dotnet.yml b/.github/workflows/dotnet.yml index b32fdb3e..67208a70 100644 --- a/.github/workflows/dotnet.yml +++ b/.github/workflows/dotnet.yml @@ -50,7 +50,7 @@ jobs: # We have to run the test projects individually so CoseSignTool.Tests can run under arm64 on the Mac runner. - name: Build and Test debug run: | - dotnet build --configuration Debug CoseSignTool.sln + dotnet build --configuration Debug CoseSignTool/CoseSignTool.csproj dotnet test --no-build --no-restore CoseSign1.Tests/CoseSign1.Tests.csproj dotnet test --no-build --no-restore CoseSign1.Certificates.Tests/CoseSign1.Certificates.Tests.csproj dotnet test --no-build --no-restore CoseIndirectSignature.Tests/CoseIndirectSignature.Tests.csproj From 8c4e32b2804e20052fa55d5d6cca2117c70e77af Mon Sep 17 00:00:00 2001 From: Leith McCombs Date: Fri, 23 Aug 2024 15:36:22 -0700 Subject: [PATCH 36/42] Get rid of --no-build --- .github/workflows/dotnet.yml | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/.github/workflows/dotnet.yml b/.github/workflows/dotnet.yml index 67208a70..ad8208fd 100644 --- a/.github/workflows/dotnet.yml +++ b/.github/workflows/dotnet.yml @@ -50,12 +50,12 @@ jobs: # We have to run the test projects individually so CoseSignTool.Tests can run under arm64 on the Mac runner. - name: Build and Test debug run: | - dotnet build --configuration Debug CoseSignTool/CoseSignTool.csproj - dotnet test --no-build --no-restore CoseSign1.Tests/CoseSign1.Tests.csproj - dotnet test --no-build --no-restore CoseSign1.Certificates.Tests/CoseSign1.Certificates.Tests.csproj - dotnet test --no-build --no-restore CoseIndirectSignature.Tests/CoseIndirectSignature.Tests.csproj - dotnet test --no-build --no-restore CoseHandler.Tests/CoseHandler.Tests.csproj - dotnet test --no-build --no-restore CoseSignTool.Tests/CoseSignTool.Tests.csproj --verbosity detailed + dotnet build --configuration Debug CoseSignTool.sln + dotnet test --no-restore CoseSign1.Tests/CoseSign1.Tests.csproj + dotnet test --no-restore CoseSign1.Certificates.Tests/CoseSign1.Certificates.Tests.csproj + dotnet test --no-restore CoseIndirectSignature.Tests/CoseIndirectSignature.Tests.csproj + dotnet test --no-restore CoseHandler.Tests/CoseHandler.Tests.csproj + dotnet test --no-restore CoseSignTool.Tests/CoseSignTool.Tests.csproj --verbosity detailed # List the contents of the working directory to make sure all the artifacts are there. - name: List working directory From f5d85470ab8e0dac1643c810ef665eda542d61cc Mon Sep 17 00:00:00 2001 From: Leith McCombs Date: Fri, 23 Aug 2024 17:00:44 -0700 Subject: [PATCH 37/42] win only --- .github/workflows/rerelease.yml | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/.github/workflows/rerelease.yml b/.github/workflows/rerelease.yml index b0c4e4ff..d0a0a808 100644 --- a/.github/workflows/rerelease.yml +++ b/.github/workflows/rerelease.yml @@ -49,10 +49,8 @@ jobs: - name: Get list of tags run: | - oldest=${{ github.event.inputs.oldest }} - newest=${{ github.event.inputs.newest }} git fetch --quiet - tags=$(git tag --list --sort=version:refname | awk -v old="$oldest" -v new="$newest" '$0 >= old && $0 <= new') + tags=$(git tag --list --sort=version:refname | awk -v old=${{ github.event.inputs.oldest }} -v new=${{ github.event.inputs.newest }} '$0 >= old && $0 <= new') echo "tags = $tags" echo "tagsToUpdate=$(echo $tags)" >> $GITHUB_ENV From c48d782dbf24fc7627dcc78a99fd84bd8282b076 Mon Sep 17 00:00:00 2001 From: Leith McCombs Date: Mon, 26 Aug 2024 10:29:33 -0700 Subject: [PATCH 38/42] fix script --- .github/workflows/dotnet.yml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/.github/workflows/dotnet.yml b/.github/workflows/dotnet.yml index ad8208fd..56c4864e 100644 --- a/.github/workflows/dotnet.yml +++ b/.github/workflows/dotnet.yml @@ -46,6 +46,14 @@ jobs: with: dotnet-version: 8.0.x + - name: Get list of tags + run: | + git fetch --quiet + tags=$(git tag --list --sort=version:refname | awk -v old=${{ github.event.inputs.oldest }} -v new=${{ github.event.inputs.newest }} '$0 >= old && $0 <= new') + echo "tags = $tags" + echo "tagsToUpdate=$(echo $tags)" >> $GITHUB_ENV + exit 1 + # Use the Dotnet Test command to load dependencies, build, and test the code. # We have to run the test projects individually so CoseSignTool.Tests can run under arm64 on the Mac runner. - name: Build and Test debug From 202c5ce833c285e704606656578c8e69f90fbec2 Mon Sep 17 00:00:00 2001 From: Leith McCombs Date: Mon, 26 Aug 2024 10:38:03 -0700 Subject: [PATCH 39/42] remove exit code --- .github/workflows/dotnet.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/.github/workflows/dotnet.yml b/.github/workflows/dotnet.yml index 56c4864e..101a7d90 100644 --- a/.github/workflows/dotnet.yml +++ b/.github/workflows/dotnet.yml @@ -52,7 +52,6 @@ jobs: tags=$(git tag --list --sort=version:refname | awk -v old=${{ github.event.inputs.oldest }} -v new=${{ github.event.inputs.newest }} '$0 >= old && $0 <= new') echo "tags = $tags" echo "tagsToUpdate=$(echo $tags)" >> $GITHUB_ENV - exit 1 # Use the Dotnet Test command to load dependencies, build, and test the code. # We have to run the test projects individually so CoseSignTool.Tests can run under arm64 on the Mac runner. From 0999254ff97e4fc08696cd3801ac1bc490b77dd3 Mon Sep 17 00:00:00 2001 From: Leith McCombs Date: Mon, 26 Aug 2024 10:42:53 -0700 Subject: [PATCH 40/42] specify bash --- .github/workflows/dotnet.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/dotnet.yml b/.github/workflows/dotnet.yml index 101a7d90..de0270a0 100644 --- a/.github/workflows/dotnet.yml +++ b/.github/workflows/dotnet.yml @@ -52,6 +52,7 @@ jobs: tags=$(git tag --list --sort=version:refname | awk -v old=${{ github.event.inputs.oldest }} -v new=${{ github.event.inputs.newest }} '$0 >= old && $0 <= new') echo "tags = $tags" echo "tagsToUpdate=$(echo $tags)" >> $GITHUB_ENV + shell: bash # Use the Dotnet Test command to load dependencies, build, and test the code. # We have to run the test projects individually so CoseSignTool.Tests can run under arm64 on the Mac runner. From 8c6554abd1757f153967eac2a84554b93271605d Mon Sep 17 00:00:00 2001 From: Leith McCombs Date: Mon, 26 Aug 2024 10:46:13 -0700 Subject: [PATCH 41/42] Use shell bash --- .github/workflows/dotnet.yml | 8 -------- .github/workflows/rerelease.yml | 2 ++ 2 files changed, 2 insertions(+), 8 deletions(-) diff --git a/.github/workflows/dotnet.yml b/.github/workflows/dotnet.yml index de0270a0..ad8208fd 100644 --- a/.github/workflows/dotnet.yml +++ b/.github/workflows/dotnet.yml @@ -46,14 +46,6 @@ jobs: with: dotnet-version: 8.0.x - - name: Get list of tags - run: | - git fetch --quiet - tags=$(git tag --list --sort=version:refname | awk -v old=${{ github.event.inputs.oldest }} -v new=${{ github.event.inputs.newest }} '$0 >= old && $0 <= new') - echo "tags = $tags" - echo "tagsToUpdate=$(echo $tags)" >> $GITHUB_ENV - shell: bash - # Use the Dotnet Test command to load dependencies, build, and test the code. # We have to run the test projects individually so CoseSignTool.Tests can run under arm64 on the Mac runner. - name: Build and Test debug diff --git a/.github/workflows/rerelease.yml b/.github/workflows/rerelease.yml index d0a0a808..0982a356 100644 --- a/.github/workflows/rerelease.yml +++ b/.github/workflows/rerelease.yml @@ -53,6 +53,7 @@ jobs: tags=$(git tag --list --sort=version:refname | awk -v old=${{ github.event.inputs.oldest }} -v new=${{ github.event.inputs.newest }} '$0 >= old && $0 <= new') echo "tags = $tags" echo "tagsToUpdate=$(echo $tags)" >> $GITHUB_ENV + shell: bash - name: Release assets for selected tags run: | @@ -80,3 +81,4 @@ jobs: gh release upload $tag ./published/CoseSignTool-*.zip done + shell: bash From 6161c6d0fc3686f61d23421d9e9205f846c59fef Mon Sep 17 00:00:00 2001 From: GitHub Action Date: Mon, 26 Aug 2024 17:49:31 +0000 Subject: [PATCH 42/42] Update changelog for release --- CHANGELOG.md | 68 +++++++++++++++++++++++++++++----------------------- 1 file changed, 38 insertions(+), 30 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 108dc5f9..9fcb85b9 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,13 @@ # Changelog +## [v1.2.7-pre2](https://github.com/microsoft/CoseSignTool/tree/v1.2.7-pre2) (2024-08-23) + +[Full Changelog](https://github.com/microsoft/CoseSignTool/compare/v1.2.7-pre1...v1.2.7-pre2) + +**Merged pull requests:** + +- experiment [\#104](https://github.com/microsoft/CoseSignTool/pull/104) ([lemccomb](https://github.com/lemccomb)) + ## [v1.2.7-pre1](https://github.com/microsoft/CoseSignTool/tree/v1.2.7-pre1) (2024-08-22) [Full Changelog](https://github.com/microsoft/CoseSignTool/compare/v1.2.7...v1.2.7-pre1) @@ -78,19 +86,19 @@ ## [v1.2.4-pre1](https://github.com/microsoft/CoseSignTool/tree/v1.2.4-pre1) (2024-07-15) -[Full Changelog](https://github.com/microsoft/CoseSignTool/compare/v1.2.3-pre7...v1.2.4-pre1) +[Full Changelog](https://github.com/microsoft/CoseSignTool/compare/v1.2.4...v1.2.4-pre1) **Merged pull requests:** - User/lemccomb/fileread [\#94](https://github.com/microsoft/CoseSignTool/pull/94) ([lemccomb](https://github.com/lemccomb)) -## [v1.2.3-pre7](https://github.com/microsoft/CoseSignTool/tree/v1.2.3-pre7) (2024-06-14) +## [v1.2.4](https://github.com/microsoft/CoseSignTool/tree/v1.2.4) (2024-06-14) -[Full Changelog](https://github.com/microsoft/CoseSignTool/compare/v1.2.4...v1.2.3-pre7) +[Full Changelog](https://github.com/microsoft/CoseSignTool/compare/v1.2.3-pre7...v1.2.4) -## [v1.2.4](https://github.com/microsoft/CoseSignTool/tree/v1.2.4) (2024-06-14) +## [v1.2.3-pre7](https://github.com/microsoft/CoseSignTool/tree/v1.2.3-pre7) (2024-06-14) -[Full Changelog](https://github.com/microsoft/CoseSignTool/compare/v1.2.3-pre6...v1.2.4) +[Full Changelog](https://github.com/microsoft/CoseSignTool/compare/v1.2.3-pre6...v1.2.3-pre7) **Merged pull requests:** @@ -194,19 +202,19 @@ ## [v1.1.8-pre1](https://github.com/microsoft/CoseSignTool/tree/v1.1.8-pre1) (2024-03-04) -[Full Changelog](https://github.com/microsoft/CoseSignTool/compare/v1.1.8...v1.1.8-pre1) +[Full Changelog](https://github.com/microsoft/CoseSignTool/compare/v1.1.7-pre3...v1.1.8-pre1) **Merged pull requests:** - Update Nuspec for CoseIndirectSignature [\#80](https://github.com/microsoft/CoseSignTool/pull/80) ([elantiguamsft](https://github.com/elantiguamsft)) -## [v1.1.8](https://github.com/microsoft/CoseSignTool/tree/v1.1.8) (2024-03-02) +## [v1.1.7-pre3](https://github.com/microsoft/CoseSignTool/tree/v1.1.7-pre3) (2024-03-02) -[Full Changelog](https://github.com/microsoft/CoseSignTool/compare/v1.1.7-pre3...v1.1.8) +[Full Changelog](https://github.com/microsoft/CoseSignTool/compare/v1.1.8...v1.1.7-pre3) -## [v1.1.7-pre3](https://github.com/microsoft/CoseSignTool/tree/v1.1.7-pre3) (2024-03-02) +## [v1.1.8](https://github.com/microsoft/CoseSignTool/tree/v1.1.8) (2024-03-02) -[Full Changelog](https://github.com/microsoft/CoseSignTool/compare/v1.1.7-pre2...v1.1.7-pre3) +[Full Changelog](https://github.com/microsoft/CoseSignTool/compare/v1.1.7-pre2...v1.1.8) **Merged pull requests:** @@ -242,19 +250,19 @@ ## [v1.1.6](https://github.com/microsoft/CoseSignTool/tree/v1.1.6) (2024-02-07) -[Full Changelog](https://github.com/microsoft/CoseSignTool/compare/v1.1.4-pre1...v1.1.6) +[Full Changelog](https://github.com/microsoft/CoseSignTool/compare/v1.1.5...v1.1.6) **Merged pull requests:** - Only hit iterator once [\#75](https://github.com/microsoft/CoseSignTool/pull/75) ([JeromySt](https://github.com/JeromySt)) -## [v1.1.4-pre1](https://github.com/microsoft/CoseSignTool/tree/v1.1.4-pre1) (2024-01-31) +## [v1.1.5](https://github.com/microsoft/CoseSignTool/tree/v1.1.5) (2024-01-31) -[Full Changelog](https://github.com/microsoft/CoseSignTool/compare/v1.1.5...v1.1.4-pre1) +[Full Changelog](https://github.com/microsoft/CoseSignTool/compare/v1.1.4-pre1...v1.1.5) -## [v1.1.5](https://github.com/microsoft/CoseSignTool/tree/v1.1.5) (2024-01-31) +## [v1.1.4-pre1](https://github.com/microsoft/CoseSignTool/tree/v1.1.4-pre1) (2024-01-31) -[Full Changelog](https://github.com/microsoft/CoseSignTool/compare/v1.1.4...v1.1.5) +[Full Changelog](https://github.com/microsoft/CoseSignTool/compare/v1.1.4...v1.1.4-pre1) **Merged pull requests:** @@ -278,19 +286,19 @@ ## [v1.1.2-pre1](https://github.com/microsoft/CoseSignTool/tree/v1.1.2-pre1) (2024-01-24) -[Full Changelog](https://github.com/microsoft/CoseSignTool/compare/v1.1.1-pre2...v1.1.2-pre1) +[Full Changelog](https://github.com/microsoft/CoseSignTool/compare/v1.1.2...v1.1.2-pre1) **Merged pull requests:** - Updating snk for internal package compatibility [\#72](https://github.com/microsoft/CoseSignTool/pull/72) ([elantiguamsft](https://github.com/elantiguamsft)) -## [v1.1.1-pre2](https://github.com/microsoft/CoseSignTool/tree/v1.1.1-pre2) (2024-01-18) +## [v1.1.2](https://github.com/microsoft/CoseSignTool/tree/v1.1.2) (2024-01-18) -[Full Changelog](https://github.com/microsoft/CoseSignTool/compare/v1.1.2...v1.1.1-pre2) +[Full Changelog](https://github.com/microsoft/CoseSignTool/compare/v1.1.1-pre2...v1.1.2) -## [v1.1.2](https://github.com/microsoft/CoseSignTool/tree/v1.1.2) (2024-01-18) +## [v1.1.1-pre2](https://github.com/microsoft/CoseSignTool/tree/v1.1.1-pre2) (2024-01-18) -[Full Changelog](https://github.com/microsoft/CoseSignTool/compare/v1.1.1-pre1...v1.1.2) +[Full Changelog](https://github.com/microsoft/CoseSignTool/compare/v1.1.1-pre1...v1.1.1-pre2) **Merged pull requests:** @@ -298,19 +306,19 @@ ## [v1.1.1-pre1](https://github.com/microsoft/CoseSignTool/tree/v1.1.1-pre1) (2024-01-17) -[Full Changelog](https://github.com/microsoft/CoseSignTool/compare/v1.1.0-pre7...v1.1.1-pre1) +[Full Changelog](https://github.com/microsoft/CoseSignTool/compare/v1.1.1...v1.1.1-pre1) **Merged pull requests:** - Move CreateChangelog to after build in PR build [\#70](https://github.com/microsoft/CoseSignTool/pull/70) ([lemccomb](https://github.com/lemccomb)) -## [v1.1.0-pre7](https://github.com/microsoft/CoseSignTool/tree/v1.1.0-pre7) (2024-01-12) +## [v1.1.1](https://github.com/microsoft/CoseSignTool/tree/v1.1.1) (2024-01-12) -[Full Changelog](https://github.com/microsoft/CoseSignTool/compare/v1.1.1...v1.1.0-pre7) +[Full Changelog](https://github.com/microsoft/CoseSignTool/compare/v1.1.0-pre7...v1.1.1) -## [v1.1.1](https://github.com/microsoft/CoseSignTool/tree/v1.1.1) (2024-01-12) +## [v1.1.0-pre7](https://github.com/microsoft/CoseSignTool/tree/v1.1.0-pre7) (2024-01-12) -[Full Changelog](https://github.com/microsoft/CoseSignTool/compare/v1.1.0-pre6...v1.1.1) +[Full Changelog](https://github.com/microsoft/CoseSignTool/compare/v1.1.0-pre6...v1.1.0-pre7) **Closed issues:** @@ -367,7 +375,7 @@ ## [v1.1.0-pre1](https://github.com/microsoft/CoseSignTool/tree/v1.1.0-pre1) (2023-11-03) -[Full Changelog](https://github.com/microsoft/CoseSignTool/compare/v1.1.0...v1.1.0-pre1) +[Full Changelog](https://github.com/microsoft/CoseSignTool/compare/v0.3.1-pre.10...v1.1.0-pre1) **Merged pull requests:** @@ -377,13 +385,13 @@ - DetachedSignatureFactory accepts pre-hashed content as payload [\#53](https://github.com/microsoft/CoseSignTool/pull/53) ([elantiguamsft](https://github.com/elantiguamsft)) - Add password support for certificate files [\#52](https://github.com/microsoft/CoseSignTool/pull/52) ([lemccomb](https://github.com/lemccomb)) -## [v1.1.0](https://github.com/microsoft/CoseSignTool/tree/v1.1.0) (2023-10-10) +## [v0.3.1-pre.10](https://github.com/microsoft/CoseSignTool/tree/v0.3.1-pre.10) (2023-10-10) -[Full Changelog](https://github.com/microsoft/CoseSignTool/compare/v0.3.1-pre.10...v1.1.0) +[Full Changelog](https://github.com/microsoft/CoseSignTool/compare/v1.1.0...v0.3.1-pre.10) -## [v0.3.1-pre.10](https://github.com/microsoft/CoseSignTool/tree/v0.3.1-pre.10) (2023-10-10) +## [v1.1.0](https://github.com/microsoft/CoseSignTool/tree/v1.1.0) (2023-10-10) -[Full Changelog](https://github.com/microsoft/CoseSignTool/compare/v0.3.1-pre.9...v0.3.1-pre.10) +[Full Changelog](https://github.com/microsoft/CoseSignTool/compare/v0.3.1-pre.9...v1.1.0) **Merged pull requests:**