Skip to content

Commit

Permalink
fix(cicd): there are no +'s in GitHub actions you silly goose.
Browse files Browse the repository at this point in the history
  • Loading branch information
l-monninger committed Dec 2, 2023
1 parent 6348af0 commit 1d45b42
Showing 1 changed file with 16 additions and 3 deletions.
19 changes: 16 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,18 +42,31 @@ jobs:
cp $RUNNER_TEMP/assets/m1-with-submodules.tar.gz $GITHUB_WORKSPACE/m1-with-submodules.tar.gz
ls -al $GITHUB_WORKSPACE
- name: Set Release Info
id: set_release_info
run: |
if [ "${{ env.BRANCH_NAME }}" = "main" ]; then
echo "::set-output name=release_name::Release-${{ steps.create_tag.outputs.tag }}"
echo "::set-output name=body::Release-${{ steps.create_tag.outputs.tag }}"
else
echo "::set-output name=release_name::Release-${{ env.BRANCH_NAME }}-${{ steps.create_tag.outputs.tag }}"
echo "::set-output name=body::Release-${{ env.BRANCH_NAME }}-${{ steps.create_tag.outputs.tag }}"
fi
env:
BRANCH_NAME: ${{ github.ref_name }}

- name: Create Release
id: create_release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ steps.create_tag.outputs.tag }}
release_name: ${{ env.BRANCH_NAME == 'main' && 'Release ' || 'Release ' }}${{ env.BRANCH_NAME == 'main' && '' || env.BRANCH_NAME + '-' }}${{ steps.create_tag.outputs.tag }}
body: ${{ env.BRANCH_NAME == 'main' && 'Release ' || 'Release ' }}${{ env.BRANCH_NAME == 'main' && '' || env.BRANCH_NAME + '-' }}${{ steps.create_tag.outputs.tag }}
release_name: ${{ steps.set_release_info.outputs.release_name }}
body: ${{ steps.set_release_info.outputs.body }}
draft: false
prerelease: true


- name: Check
run: |
Expand Down

0 comments on commit 1d45b42

Please sign in to comment.