Release body

This commit is contained in:
Joseph Garrone 2020-05-23 08:05:41 +02:00
parent 4fa62cab4f
commit 1afaf16618

View file

@ -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 }}