mirror of
https://github.com/ChrisTitusTech/winutil.git
synced 2025-01-16 01:40:35 -06:00
Update createchangelog.yml
This commit is contained in:
parent
30bea93dde
commit
fb81059c23
39
.github/workflows/createchangelog.yml
vendored
39
.github/workflows/createchangelog.yml
vendored
@ -1,17 +1,36 @@
|
|||||||
name: On release published
|
name: Update update.mb on Release
|
||||||
|
|
||||||
on:
|
on:
|
||||||
release:
|
release:
|
||||||
types: [published]
|
types: [published]
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
changelog:
|
update-file:
|
||||||
name: Update changelog
|
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- name: Checkout Repository
|
||||||
with:
|
uses: actions/checkout@v2
|
||||||
ref: main
|
|
||||||
- uses: rhysd/changelog-from-release/action@v3
|
- name: Extract numeric version and update update.mb file
|
||||||
with:
|
run: |
|
||||||
file: /docs/updates.md
|
version="${{ github.event.release.tag_name }}"
|
||||||
github_token: ${{ secrets.GITHUB_TOKEN }}
|
version_numeric=$(echo $version | grep -o -E '[0-9.]+')
|
||||||
|
{
|
||||||
|
echo "## $version_numeric"
|
||||||
|
echo "Release name: ${{ github.event.release.name }}"
|
||||||
|
echo "Release body: ${{ github.event.release.body }}"
|
||||||
|
echo ""
|
||||||
|
cat docs/update.mb
|
||||||
|
} > temp_update.mb
|
||||||
|
mv temp_update.mb docs/update.mb
|
||||||
|
|
||||||
|
- name: Commit and Push Changes
|
||||||
|
env:
|
||||||
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
run: |
|
||||||
|
git config --global user.name 'github-actions[bot]'
|
||||||
|
git config --global user.email 'github-actions[bot]@users.noreply.github.com'
|
||||||
|
git add docs/update.mb
|
||||||
|
git commit -m "Update update.mb for release ${{ github.event.release.tag_name }}"
|
||||||
|
git push
|
||||||
|
Loading…
Reference in New Issue
Block a user