Skip to content

Commit

Permalink
fix: Update branch extraction method in hydrun CI workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
alexlovelltroy committed Nov 22, 2024
1 parent 85b1c80 commit 785ba27
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions .github/workflows/hydrun.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -80,16 +80,19 @@ jobs:
with:
path: /tmp/out
- name: Extract branch name
shell: bash
run: echo "branch=${GITHUB_HEAD_REF:-${GITHUB_REF#refs/heads/}}" >> $GITHUB_OUTPUT
id: extract_branch
run: echo "##[set-output name=branch;]$(echo ${GITHUB_REF#refs/heads/})"

- name: Publish pre-release to GitHub releases
if: ${{ github.ref == 'refs/heads/main' }}
if: startsWith(github.ref, 'refs/heads/main')
uses: softprops/action-gh-release@v2
with:
tag_name: release-${{ steps.extract_branch.outputs.branch }}
prerelease: true
files: |
/tmp/out/*/*
- name: Publish release to GitHub releases
if: startsWith(github.ref, 'refs/tags/v')
uses: softprops/action-gh-release@v2
Expand Down

0 comments on commit 785ba27

Please sign in to comment.