Skip to content

Commit

Permalink
Add echo version & release action
Browse files Browse the repository at this point in the history
  • Loading branch information
yuler committed Sep 4, 2021
1 parent 7b24a89 commit 36e315e
Show file tree
Hide file tree
Showing 3 changed files with 55 additions and 0 deletions.
31 changes: 31 additions & 0 deletions .github/release-drafter-config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name-template: 'v$RESOLVED_VERSION 🌈'
tag-template: 'v$RESOLVED_VERSION'
categories:
- title: '🚀 Features'
labels:
- 'feature'
- 'enhancement'
- title: '🐛 Bug Fixes'
labels:
- 'fix'
- 'bugfix'
- 'bug'
- title: '🧰 Maintenance'
label: 'chore'
change-template: '- $TITLE @$AUTHOR (#$NUMBER)'
change-title-escapes: '\<*_&' # You can add # and @ to disable mentions, and add ` to disable code blocks.
version-resolver:
major:
labels:
- 'major'
minor:
labels:
- 'minor'
patch:
labels:
- 'patch'
default: patch
template: |
## Changes
$CHANGES
20 changes: 20 additions & 0 deletions .github/workflows/release-drafter.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name: Release Drafter

on:
push:
branches:
- main
tags:
- 'v*'
pull_request:
types: [opened, reopened, labeled, synchronize]

jobs:
update_release_draft:
runs-on: ubuntu-latest
steps:
- uses: release-drafter/release-drafter@v5
with:
config-name: release-drafter-config.yml
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
4 changes: 4 additions & 0 deletions gh-todo
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ Examples:
EOF
}

version="0.1.0"
date=$(date -u +"%Y-%m-%d")
repo="$(git config user.name)/todo"

Expand Down Expand Up @@ -58,6 +59,9 @@ fi

while [ $# -gt 0 ]; do
case "$1" in
-v | --version)
echo $version
;;
-h | --help)
help
exit 0
Expand Down

0 comments on commit 36e315e

Please sign in to comment.