From e26e98280e8df647073ce35ad1a26f1eeb5de720 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jean-No=C3=ABl=20Avila?= Date: Tue, 20 Jul 2021 22:31:19 +0200 Subject: [PATCH] github-action: fix branch name in release stage --- .github/workflows/release-on-merge.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/release-on-merge.yml b/.github/workflows/release-on-merge.yml index 808d9f6..3c877b8 100644 --- a/.github/workflows/release-on-merge.yml +++ b/.github/workflows/release-on-merge.yml @@ -22,6 +22,8 @@ jobs: LASTPATCH=$(git describe --tags | cut -d- -f1 | cut -d. -f3) PATCH=$(($LASTPATCH+1)) echo "::set-output name=tagname::2.1.${PATCH}" + echo "::set-output name=branch::${GITHUB_REF#refs/heads/}" + - name: Set up Ruby uses: ruby/setup-ruby@v1 with: @@ -36,5 +38,5 @@ jobs: with: token: ${{ secrets.GITHUB_TOKEN }} tag: ${{ steps.compute-tag.outputs.tagname }} - commit: main + commit: ${{ steps.compute-tag.outputs.branch }} artifacts: './progit.epub,./progit.mobi,./progit.pdf,./progit.html'