diff --git a/.github/workflows/publish.yaml b/.github/workflows/publish.yaml index 90cba1f..b266679 100644 --- a/.github/workflows/publish.yaml +++ b/.github/workflows/publish.yaml @@ -70,32 +70,30 @@ jobs: rm .npmrc env: NPM_TOKEN: ${{ secrets.NPM_TOKEN }} - - name: Release commit message - id: id_rcm + - name: Commit changes + run: | + git config --local user.email "ts_ci@github.com" + git config --local user.name "ts_ci" + git add -A + git commit -am "🚀 Enabling shorter path [automatic]" + - name: Push changes + uses: ad-m/github-push-action@v0.5.0 + with: + github_token: ${{ secrets.PAT }} + branch: latest + - name: Release body + id: id_rb run: | if [ "$FROM_VERSION" = "" ]; then - echo "::set-output name=message::'🚀'" + echo "::set-output name=body::🚀" else - echo "::set-output name=message::'📋 https://github.com/$OWNER/$REPO/blob/$REF/CHANGELOG.md'" + echo "::set-output name=body::📋 [CHANGELOG](https://github.com/$OWNER/$REPO/blob/$REF/CHANGELOG.md)" fi env: FROM_VERSION: ${{ github.event.client_payload.from_version }} OWNER: ${{github.repository_owner}} REPO: ${{github.event.client_payload.repo}} REF: ${{github.event.client_payload.to_version}} - - name: Commit changes - env: - COMMIT_MESSAGE: ${{steps.id_rcm.outputs.message}} - run: | - git config --local user.email "ts_ci@github.com" - git config --local user.name "ts_ci" - git add -A - git commit -am "$COMMIT_MESSAGE" - - name: Push changes - uses: ad-m/github-push-action@v0.5.0 - with: - github_token: ${{ secrets.PAT }} - branch: latest - name: Create Release uses: garronej/create-release@master env: @@ -106,3 +104,4 @@ jobs: branch: latest draft: false prerelease: false + body: ${{ steps.id_rb.outputs.body }}