From 5730f843d24167d92607b4f7dd121d40b81dfb03 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=B6ren=20Weber?= Date: Fri, 11 Feb 2022 09:38:19 +0100 Subject: [PATCH] build: Mark non-release version to make debugging in foreign environments easier if theme is installed as a submodule --- .github/actions/release_milestone/action.yaml | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/.github/actions/release_milestone/action.yaml b/.github/actions/release_milestone/action.yaml index a91774b825..b99fbda2a8 100644 --- a/.github/actions/release_milestone/action.yaml +++ b/.github/actions/release_milestone/action.yaml @@ -63,3 +63,15 @@ runs: GREN_GITHUB_TOKEN: ${{ inputs.github_token }} run: | npx github-release-notes@0.17.1 release --tags "$MILESTONE" + + - name: Update version number to mark non-release version + shell: bash + env: + MILESTONE: ${{ inputs.milestone }} + GITHUB_TOKEN: ${{ inputs.github_token }} + GREN_GITHUB_TOKEN: ${{ inputs.github_token }} + run: | + echo "$MILESTONE+next" > layouts/partials/version.html + git add * + git commit --message "Ship tag $MILESTONE" + git push origin main