mirror of
https://github.com/garronej/ts-ci.git
synced 2025-11-30 21:43:05 +00:00
Release body
This commit is contained in:
parent
4fa62cab4f
commit
1afaf16618
1 changed files with 16 additions and 17 deletions
33
.github/workflows/publish.yaml
vendored
33
.github/workflows/publish.yaml
vendored
|
|
@ -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 }}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue