Skip to content

Commit

Permalink
CI update
Browse files Browse the repository at this point in the history
  • Loading branch information
pilotak committed Dec 28, 2020
1 parent df7a967 commit aa1dd15
Show file tree
Hide file tree
Showing 3 changed files with 50 additions and 21 deletions.
16 changes: 0 additions & 16 deletions .github/workflows/hassfest.yaml

This file was deleted.

37 changes: 37 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: release

on:
push:
tags:
- "v*"

jobs:
release:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2

- name: Prepare
id: prepare
run: |
git fetch --prune --unshallow --tags -f
VERSION=$(git tag --points-at HEAD)
VERSION=${VERSION//v}
echo "## :bookmark_tabs: Changes" >>"CHANGELOG.md"
git log --pretty=format:"- %s %H%n" $(git describe --abbrev=0 --tags $(git describe --tags --abbrev=0)^)...$(git describe --tags --abbrev=0) >>"CHANGELOG.md"
echo ::set-output name=version::${VERSION}
- name: Create Release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ github.ref }}
release_name: Release ${{ steps.prepare.outputs.version }}
body_path: CHANGELOG.md
draft: false
prerelease: false
Original file line number Diff line number Diff line change
@@ -1,19 +1,27 @@
name: Validate with HACS
name: Validate

on:
push:
paths-ignore:
- "README.md"
schedule:
- cron: "30 7 1 * *"
- 'README.md'
branches:
- master
pull_request:
branches:
- '*'

jobs:
validate:
runs-on: "ubuntu-latest"
steps:
- uses: "actions/checkout@v2"
- name: Checkout
uses: "actions/checkout@v2"

- name: HACS validation
uses: "hacs/integration/action@master"
with:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
CATEGORY: "integration"

- name: HASSFEST
uses: home-assistant/actions/hassfest@master

0 comments on commit aa1dd15

Please sign in to comment.