Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
driesvints committed May 7, 2024
1 parent 5710fdb commit d4119d7
Showing 1 changed file with 38 additions and 38 deletions.
76 changes: 38 additions & 38 deletions .github/workflows/releases.yml
Original file line number Diff line number Diff line change
Expand Up @@ -79,41 +79,41 @@ jobs:
bash ./bin/release.sh v${{ steps.version.outputs.version }}
script_stop: true

- name: Generate release notes
id: generated-notes
uses: RedCrafter07/release-notes-action@main
with:
tag-name: v${{ steps.version.outputs.version }}
token: ${{ secrets.GITHUB_TOKEN }}
branch: ${{ github.ref_name }}

- name: Cleanup release notes
id: cleaned-notes
run: |
RELEASE_NOTES=$(echo $RELEASE_NOTES | sed '/## What/d')
RELEASE_NOTES=$(echo $RELEASE_NOTES | sed '/## New Contributors/,$d')
echo "notes=${RELEASE_NOTES}" >> "$GITHUB_OUTPUT"
env:
RELEASE_NOTES: ${{ steps.generated-notes.outputs.release-notes }}

- name: Create release
uses: softprops/action-gh-release@v2
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: v${{ steps.version.outputs.version }}
name: v${{ steps.version.outputs.version }}
body: ${{ steps.cleaned-notes.outputs.notes }}
target_commitish: ${{ github.ref_name }}
make_latest: 'legacy'

update-changelog:
needs: release

name: Update changelog

uses: laravel/.github/.github/workflows/update-changelog.yml@main
with:
branch: ${{ github.ref_name }}
version: "v${{ needs.release.outputs.version }}"
notes: ${{ needs.release.outputs.notes }}
# - name: Generate release notes
# id: generated-notes
# uses: RedCrafter07/release-notes-action@main
# with:
# tag-name: v${{ steps.version.outputs.version }}
# token: ${{ secrets.GITHUB_TOKEN }}
# branch: ${{ github.ref_name }}

# - name: Cleanup release notes
# id: cleaned-notes
# run: |
# RELEASE_NOTES=$(echo $RELEASE_NOTES | sed '/## What/d')
# RELEASE_NOTES=$(echo $RELEASE_NOTES | sed '/## New Contributors/,$d')
# echo "notes=${RELEASE_NOTES}" >> "$GITHUB_OUTPUT"
# env:
# RELEASE_NOTES: ${{ steps.generated-notes.outputs.release-notes }}

# - name: Create release
# uses: softprops/action-gh-release@v2
# env:
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# with:
# tag_name: v${{ steps.version.outputs.version }}
# name: v${{ steps.version.outputs.version }}
# body: ${{ steps.cleaned-notes.outputs.notes }}
# target_commitish: ${{ github.ref_name }}
# make_latest: 'legacy'

# update-changelog:
# needs: release

# name: Update changelog

# uses: laravel/.github/.github/workflows/update-changelog.yml@main
# with:
# branch: ${{ github.ref_name }}
# version: "v${{ needs.release.outputs.version }}"
# notes: ${{ needs.release.outputs.notes }}

0 comments on commit d4119d7

Please sign in to comment.