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 uses: actions/checkout@v2
with: with:
ref: ${{ github.event.repository.default_branch }} ref: ${{ github.event.repository.default_branch }}
fetch-depth: 0
- name: Empty CHANGELOG.md - name: Empty CHANGELOG.md
run: | run: |
git config --global user.email "action@github.com" git config --global user.email "action@github.com"
git config --global user.name "github-actions" 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 rm CHANGELOG.md
touch CHANGELOG.md touch CHANGELOG.md
git add 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 git push

View file

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

View file

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

View file

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