diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 1007330..e6594ed 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -56,19 +56,89 @@ jobs: PREV_TAG=$(git describe --tags --abbrev=0 HEAD^ 2>/dev/null || echo "") if [ -z "$PREV_TAG" ]; then echo "No previous tag found, using initial commit." - COMMITS=$(git log --format="- %s (@%an)" HEAD) + COMMITS="" else - COMMITS="" + COMMITS="" fi - + + echo "Result: $COMMITS" + # Odstranění nechtěných znaků COMMITS=$(echo "$COMMITS" | sed 's/[[:cntrl:]]//g') - + echo "Result clear: $COMMITS" echo "commits=$COMMITS" >> $GITHUB_ENV env: GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} @@ -83,16 +153,4 @@ jobs: ${{ env.commits }} draft: false prerelease: ${{ env.prerelease }} - name: ${{ github.ref_name }} - ${{ env.release_type }} - -# - name: Create release -# uses: actions/create-release@v1 -# env: -# GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} -# with: -# tag_name: ${{ github.ref_name }} -# release_name: ${{ github.ref_name }} - ${{ env.release_type }} -# body: | -# ${{ env.commits }} -# draft: false -# prerelease: ${{ env.prerelease }} + name: ${{ github.ref_name }} - ${{ env.release_type }} \ No newline at end of file diff --git a/router.go b/router.go index 68c9a75..09c3859 100644 --- a/router.go +++ b/router.go @@ -22,6 +22,7 @@ type ErrorHandlerFunc func(c *gin.Context) type Router struct { router *gin.Engine routes map[string]*Route + middlewares []interface{} errorHandlers map[int]ErrorHandlerFunc defaultHandler ErrorHandlerFunc }