fix: release error handling

This commit is contained in:
Skillz4Killz
2022-02-25 18:05:32 +00:00
committed by GitHub
parent 5abd6861b9
commit 6ecd4f88ce
+4 -2
View File
@@ -16,9 +16,11 @@ jobs:
- uses: denoland/setup-deno@main
with:
deno-version: ${{ matrix.deno }}
- name: Get tag version
id: get_tag_version
- name: Get last tag version
run: echo "DISCORDENO_VERSION_OLD=$(git describe --tags --abbrev=0)" >> $GITHUB_ENV
- name: Get new tag version
run: echo "DISCORDENO_VERSION=$(cat util/constants.ts | grep 'export const DISCORDENO_VERSION' | awk -F'= ' '{print $2}' | tr -d '"|;')" >> $GITHUB_ENV
- name: Create tag
if: ${{ env.DISCORDENO_VERSION != env.DISCORDENO_VERSION_OLD }}
run: git tag ${{ env.DISCORDENO_VERSION }} && git push --tags