diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 31a6fb1..d504a4d 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -29,10 +29,14 @@ jobs: - name: Build RSP run: 7z\7za.exe a -mx9 -tzip -aoa RSP.zip assets\* credit.txt pack.mcmeta pack.png README.md + - name: Get tag name from ref + shell: bash + run: echo "::set-output name=tag::${{ github.event.repository.updated_at}}" + id: get_tag - name: Create tag in public repository run: | cd ${{github.workspace}} - git tag ${{ github.event.repository.updated_at}} + git tag ${{ steps.get_tag.outputs.tag }} git push --tags --porcelain - name: Create Release @@ -42,7 +46,7 @@ jobs: draft: false prerelease: true release_name: Build-${{ github.event.repository.updated_at}} - tag_name: ${{ github.event.repository.updated_at}} + tag_name: ${{ steps.get_tag.outputs.tag }} env: GITHUB_TOKEN: ${{ github.token }}