mirror of
https://github.com/danbulant/dribbblish-dynamic-theme
synced 2026-07-09 13:11:17 +00:00
Format actions and make empty-changelog add version number in commit message
This commit is contained in:
parent
f24015e3c5
commit
3014fa68a9
4 changed files with 85 additions and 94 deletions
10
.github/workflows/empty-changelog.yaml
vendored
10
.github/workflows/empty-changelog.yaml
vendored
|
|
@ -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
|
||||
2
.github/workflows/prettier.yml
vendored
2
.github/workflows/prettier.yml
vendored
|
|
@ -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
|
||||
|
|
|
|||
6
.github/workflows/release.yaml
vendored
6
.github/workflows/release.yaml
vendored
|
|
@ -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: |
|
||||
|
|
@ -55,7 +55,7 @@ jobs:
|
|||
- name: Upload Release
|
||||
uses: softprops/action-gh-release@v1
|
||||
with:
|
||||
fail_on_unmatched_files : true
|
||||
fail_on_unmatched_files: true
|
||||
files: DribbblishDynamic_v${{ github.event.inputs.version }}.zip
|
||||
tag_name: ${{ github.event.inputs.version }}
|
||||
draft: true
|
||||
|
|
|
|||
|
|
@ -1,2 +1 @@
|
|||
Vibrant.min.js
|
||||
dist/
|
||||
.github/
|
||||
Loading…
Reference in a new issue