Skip to content

fix: trying to fix release action #4

fix: trying to fix release action

fix: trying to fix release action #4

Workflow file for this run

name: Release
on:
push:
tags:
- '*.*.*'
permissions:
contents: write
jobs:
release:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Generate changelog only
id: changelog
uses: mikepenz/release-changelog-builder-action@v4
with:
failOnError: true
outputFile: CHANGELOG.md
configuration: .github/release-config.yml
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Read changelog into output
id: readlog
run: |
CHANGELOG=$(cat CHANGELOG.md)
echo "log<<EOF" >> $GITHUB_OUTPUT
echo "$CHANGELOG" >> $GITHUB_OUTPUT
echo "EOF" >> $GITHUB_OUTPUT
- name: Create GitHub release
uses: softprops/action-gh-release@v2
with:
body: ${{ steps.readlog.outputs.log }}
prerelease: ${{ contains(github.ref, '-') }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: GitHub Releases to Discord
uses: SethCohen/github-releases-to-discord@v1
with:
webhook_url: ${{ secrets.WEBHOOK_URL }}
color: |
if [[ "${GITHUB_REF##*/}" == *-* ]]; then
echo "color=d29922"
else
echo "color=3eb991"
fi
content: "<@&1394740955000606902>"
footer_title: "github-actions"
reduce_headings: true
footer_timestamp: true