Skip to content

Commit

Permalink
Merge pull request #69 from NikitaSkrynnik/fix-release
Browse files Browse the repository at this point in the history
Add an additional step to choose a proper release branch
  • Loading branch information
denis-tingaikin authored Apr 10, 2024
2 parents 6e37817 + f4d13d3 commit ac3a7e1
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,22 @@ jobs:
needs: get-tag
runs-on: ubuntu-latest
steps:
- name: Choose branch
id: branch
run: |
branch=${{ github.event.workflow_run.head_branch }}
if [ -z "$branch" ]; then
ref=${{ github.event.ref }}
branch=${ref#refs/heads/}
fi
echo "$branch"
echo branch=${branch} >> $GITHUB_OUTPUT
- name: Checkout repository
uses: actions/checkout@v4
with:
ref: refs/heads/${{github.event.workflow_run.head_branch}}
ref: refs/heads/${{ steps.branch.outputs.branch }}

- name: Push tag ${{ needs.get-tag.outputs.tag }}
run: |
git status
Expand Down

0 comments on commit ac3a7e1

Please sign in to comment.