From 34c09eb8dbe2e8a26b371ddede75a00c2c0c561e Mon Sep 17 00:00:00 2001 From: Kazuki Ota Date: Thu, 21 Dec 2023 11:46:09 +0900 Subject: [PATCH] Update build-and-publish.yml (#463) --- .github/workflows/build-and-publish.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build-and-publish.yml b/.github/workflows/build-and-publish.yml index 7c424bed..bd702593 100644 --- a/.github/workflows/build-and-publish.yml +++ b/.github/workflows/build-and-publish.yml @@ -31,7 +31,7 @@ jobs: shell: pwsh run: | $doc = [XML](Get-Content 'Source\Directory.Build.props') - $doc.Project.PropertyGroup.Version = '${{github.refs}}'.Split('/')[2].Substring(1) + $doc.Project.PropertyGroup.Version = '${{github.ref}}'.Split('/')[2].Substring(1) $doc.Save('Source\Directory.Build.props') - name: Set version to outputs id: set-version-to-output @@ -80,7 +80,7 @@ jobs: - uses: "marvinpinto/action-automatic-releases@latest" with: repo_token: "${{ secrets.GITHUB_TOKEN }}" - automatic_release_tag: "${GITHUB_REF/refs/tags}" + automatic_release_tag: "latest" prerelease: ${{ contains(github.ref, '-pre') }} title: "${GITHUB_REF/refs/tags}" files: |