Skip to content

Commit

Permalink
Merge pull request #6 from WriteNaN/WriteNaN-patch-1
Browse files Browse the repository at this point in the history
Mock #5
  • Loading branch information
WriteNaN authored Apr 3, 2024
2 parents b58ca23 + 09cf9eb commit 2418d26
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,13 +21,18 @@ jobs:
${{ github.api_url }}/repos/${{ github.repository }}/pulls/${{ github.event.number }} \
| jq -r '.body')
echo "::set-output name=body::$BODY"
echo "Pull Request Body: $BODY" # Debug message
- name: Add Version and Get Changes
id: increment_version
run: |
bash ./scripts/increment_version.sh "${{ steps.pr_body.outputs.body }}"
env:
VERSION_CHANGES: ${{ steps.increment_version.outputs.stdout }}
VERSION_NUMBER: ${{ steps.increment_version.outputs.version }}
# Debug messages
echo "Incremented Version Number: $VERSION_NUMBER"
echo "Changes in this Release: $VERSION_CHANGES"

- name: Setup Bun
uses: oven-sh/setup-bun@v1
Expand All @@ -44,8 +49,8 @@ jobs:
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ steps.increment_version.outputs.version }}
release_name: Release ${{ steps.increment_version.outputs.version }}
tag_name: ${{ env.VERSION_NUMBER }}
release_name: Release ${{ env.VERSION_NUMBER }}
body: |
Changes in this Release:
${{ env.VERSION_CHANGES }}
Expand Down

0 comments on commit 2418d26

Please sign in to comment.