Format actions and make empty-changelog add version number in commit message

This commit is contained in:
Send_Nukez 2021-10-29 22:53:04 +02:00
parent f24015e3c5
commit 3014fa68a9
4 changed files with 85 additions and 94 deletions

View file

@ -13,22 +13,16 @@ jobs:
uses: actions/checkout@v2
with:
ref: ${{ github.event.repository.default_branch }}
fetch-depth: 0
- name: Empty CHANGELOG.md
run: |
git config --global user.email "action@github.com"
git config --global user.name "github-actions"
if [ -s CHANGELOG.md ]; then
echo "Comitting emptied CHANGELOG.md"
else
echo "CHANGELOG.md is already empty. skipping comitting"
exit 0
fi
rm CHANGELOG.md
touch CHANGELOG.md
git add CHANGELOG.md
git commit -m "Empty CHANGELOG.md"
git commit --allow-empty -m "Empty CHANGELOG.md after v$(git describe --tags --abbrev=0)"
git push

View file

@ -14,9 +14,7 @@ jobs:
- name: Checkout
uses: actions/checkout@v2
with:
# Make sure the actual branch is checked out when running on pull requests
ref: ${{ github.head_ref }}
# This is important to fetch the changes to the previous commit
fetch-depth: 0
- name: Prettify code

View file

@ -4,7 +4,7 @@ on:
workflow_dispatch:
inputs:
version:
description: 'Version of Release (format: X.X.X)'
description: "Version of Release (format: X.X.X)"
required: true
jobs:
@ -25,7 +25,7 @@ jobs:
- name: Setup Node.js
uses: actions/setup-node@v2
with:
node-version: '14'
node-version: "14"
- name: Build Webpack
run: |

View file

@ -1,2 +1 @@
Vibrant.min.js
dist/
.github/