Skip to content

Commit

Permalink
Merge pull request #6 from PlqnK/github-actions
Browse files Browse the repository at this point in the history
Rework GitHub actions
  • Loading branch information
PlqnK authored Nov 2, 2020
2 parents 76ba6c2 + 64727d8 commit 999bea9
Show file tree
Hide file tree
Showing 5 changed files with 79 additions and 10 deletions.
33 changes: 33 additions & 0 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
---
name: 'Lint'

on:
pull_request:
branches:
- 'master'
paths:
- '**.sh'
- '**.md'

jobs:
shellcheck:
name: 'ShellCheck'
runs-on: 'ubuntu-latest'
steps:
- uses: 'actions/checkout@v2'
- name: 'Run shellcheck'
uses: 'azohra/shell-linter@master'
with:
path: '*.sh'
env:
SHELLCHECK_OPTS: '-x'
markdown-lint:
name: 'Markdown Lint'
runs-on: 'ubuntu-latest'
steps:
- uses: 'actions/checkout@v2'
- name: 'Run markdownlint'
uses: 'avto-dev/markdown-lint@master'
with:
args: '.'
config: '.markdownlint.yml'
23 changes: 23 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
---
name: 'Release'

on:
push:
tags:
- 'v*'

jobs:
publish:
name: 'Publish'
runs-on: 'ubuntu-latest'
steps:
- uses: 'actions/checkout@v2'
- name: 'Create GitHub Release'
uses: 'anton-yurchenko/git-release@v3.4.2'
env:
GITHUB_TOKEN: '${{ secrets.GITHUB_TOKEN }}'
DRAFT_RELEASE: 'false'
PRE_RELEASE: 'false'
CHANGELOG_FILE: 'CHANGELOG.md'
ALLOW_EMPTY_CHANGELOG: 'false'
ALLOW_TAG_PREFIX: 'true'
10 changes: 0 additions & 10 deletions .github/workflows/shellcheck.yml

This file was deleted.

2 changes: 2 additions & 0 deletions .markdownlint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
---
MD013: false
21 changes: 21 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# Changelog

All notable changes to this project will be documented in this file.

The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [Unreleased]

## [1.0.0] - 2020-11-02

Final release supporting FreeNAS 11.3!

### Added

- 3 system reports scripts (SMART, ZPool and UPS)
- 1 config backup script
- 2 information gathering script (CPU & drives temperature as well as drives identification)
- A standalone bash function to format emails to be sent by the FreeNAS sendmail program

[Unreleased]: https://github.com/PlqnK/freenas-useful-scripts/compare/v1.0.0...HEAD
[1.0.0]: https://github.com/PlqnK/freenas-useful-scripts/releases/tag/v1.0.0

0 comments on commit 999bea9

Please sign in to comment.