From 458bd54d3cfe647b26d584721c799fad01576927 Mon Sep 17 00:00:00 2001 From: Dhenain Ambroise Date: Mon, 9 Jan 2023 17:19:46 +0100 Subject: [PATCH 1/4] Change from marvinpinto/action-automatic-releases to softprops/action-gh-release@v1 --- .github/workflows/auto-git-release-staging.yml | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/.github/workflows/auto-git-release-staging.yml b/.github/workflows/auto-git-release-staging.yml index 85d4966b..8f11e0b7 100644 --- a/.github/workflows/auto-git-release-staging.yml +++ b/.github/workflows/auto-git-release-staging.yml @@ -48,21 +48,23 @@ jobs: echo "current_commit: ${{steps.next_semantic_version.outputs.current_commit}}" - name: Creating Git release tag for the ${{steps.next_semantic_version.outputs.version}} version - uses: marvinpinto/action-automatic-releases@10bdce64abdb4558a2ee6983192242be40d631d8 # Pin "latest" https://github.com/marvinpinto/action-automatic-releases/commit/10bdce64abdb4558a2ee6983192242be40d631d8 necessary to avoid "The `set-env` command is disabled." - with: # See https://github.com/marvinpinto/action-automatic-releases/tree/v1.1.0#supported-parameters + uses: softprops/action-gh-release@v1 + with: # See https://github.com/softprops/action-gh-release#-customizing repo_token: "${{ secrets.GITHUB_TOKEN }}" - automatic_release_tag: ${{steps.next_semantic_version.outputs.version}} + name: ${{steps.next_semantic_version.outputs.version}} + body: "Automatic release ${{steps.next_semantic_version.outputs.version}}" prerelease: true - title: "Automatic release ${{steps.next_semantic_version.outputs.version}}" + generate_release_notes: true files: | CHANGELOG.md - name: Updating Git release tag for "latest-rc" version - uses: marvinpinto/action-automatic-releases@10bdce64abdb4558a2ee6983192242be40d631d8 # Pin "latest" https://github.com/marvinpinto/action-automatic-releases/commit/10bdce64abdb4558a2ee6983192242be40d631d8 necessary to avoid "The `set-env` command is disabled." - with: # See https://github.com/marvinpinto/action-automatic-releases/tree/v1.1.0#supported-parameters + uses: softprops/action-gh-release@v1 + with: # See https://github.com/softprops/action-gh-release#-customizing repo_token: "${{ secrets.GITHUB_TOKEN }}" - automatic_release_tag: latest-rc + name: latest-rc + body: "Latest release (auto-update) - UNSAFE for production usage" prerelease: true - title: "Latest release (auto-update) - UNSAFE for production usage" + generate_release_notes: true files: | CHANGELOG.md From 522fb8d36bbed8f595ee3b3795ef79c81b63447a Mon Sep 17 00:00:00 2001 From: Dhenain Ambroise Date: Mon, 9 Jan 2023 17:22:39 +0100 Subject: [PATCH 2/4] Fix --- .github/workflows/auto-git-release-staging.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/auto-git-release-staging.yml b/.github/workflows/auto-git-release-staging.yml index 8f11e0b7..b80ceeac 100644 --- a/.github/workflows/auto-git-release-staging.yml +++ b/.github/workflows/auto-git-release-staging.yml @@ -51,7 +51,7 @@ jobs: uses: softprops/action-gh-release@v1 with: # See https://github.com/softprops/action-gh-release#-customizing repo_token: "${{ secrets.GITHUB_TOKEN }}" - name: ${{steps.next_semantic_version.outputs.version}} + tag_name: ${{steps.next_semantic_version.outputs.version}} body: "Automatic release ${{steps.next_semantic_version.outputs.version}}" prerelease: true generate_release_notes: true @@ -62,7 +62,7 @@ jobs: uses: softprops/action-gh-release@v1 with: # See https://github.com/softprops/action-gh-release#-customizing repo_token: "${{ secrets.GITHUB_TOKEN }}" - name: latest-rc + tag_name: latest-rc body: "Latest release (auto-update) - UNSAFE for production usage" prerelease: true generate_release_notes: true From 7b9053ae6ff6cf8319ed430931bcd93518b0f2bc Mon Sep 17 00:00:00 2001 From: Dhenain Ambroise Date: Mon, 9 Jan 2023 17:23:06 +0100 Subject: [PATCH 3/4] Better --- .github/workflows/auto-git-release-staging.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/auto-git-release-staging.yml b/.github/workflows/auto-git-release-staging.yml index b80ceeac..4db3a7f7 100644 --- a/.github/workflows/auto-git-release-staging.yml +++ b/.github/workflows/auto-git-release-staging.yml @@ -52,7 +52,7 @@ jobs: with: # See https://github.com/softprops/action-gh-release#-customizing repo_token: "${{ secrets.GITHUB_TOKEN }}" tag_name: ${{steps.next_semantic_version.outputs.version}} - body: "Automatic release ${{steps.next_semantic_version.outputs.version}}" + name: "Automatic release ${{steps.next_semantic_version.outputs.version}}" prerelease: true generate_release_notes: true files: | @@ -63,7 +63,7 @@ jobs: with: # See https://github.com/softprops/action-gh-release#-customizing repo_token: "${{ secrets.GITHUB_TOKEN }}" tag_name: latest-rc - body: "Latest release (auto-update) - UNSAFE for production usage" + name: "Latest release (auto-update) - UNSAFE for production usage" prerelease: true generate_release_notes: true files: | From 7cdc50f629571a1c270443ec8f5c9ed82f1a47ca Mon Sep 17 00:00:00 2001 From: Dhenain Ambroise Date: Mon, 9 Jan 2023 17:23:47 +0100 Subject: [PATCH 4/4] Fix token --- .github/workflows/auto-git-release-staging.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/auto-git-release-staging.yml b/.github/workflows/auto-git-release-staging.yml index 4db3a7f7..78aa5abe 100644 --- a/.github/workflows/auto-git-release-staging.yml +++ b/.github/workflows/auto-git-release-staging.yml @@ -50,7 +50,7 @@ jobs: - name: Creating Git release tag for the ${{steps.next_semantic_version.outputs.version}} version uses: softprops/action-gh-release@v1 with: # See https://github.com/softprops/action-gh-release#-customizing - repo_token: "${{ secrets.GITHUB_TOKEN }}" + token: "${{ secrets.GITHUB_TOKEN }}" tag_name: ${{steps.next_semantic_version.outputs.version}} name: "Automatic release ${{steps.next_semantic_version.outputs.version}}" prerelease: true @@ -61,7 +61,7 @@ jobs: - name: Updating Git release tag for "latest-rc" version uses: softprops/action-gh-release@v1 with: # See https://github.com/softprops/action-gh-release#-customizing - repo_token: "${{ secrets.GITHUB_TOKEN }}" + token: "${{ secrets.GITHUB_TOKEN }}" tag_name: latest-rc name: "Latest release (auto-update) - UNSAFE for production usage" prerelease: true