Skip to content

Commit 999bea9

Browse files
authored
Merge pull request #6 from PlqnK/github-actions
Rework GitHub actions
2 parents 76ba6c2 + 64727d8 commit 999bea9

File tree

5 files changed

+79
-10
lines changed

5 files changed

+79
-10
lines changed

.github/workflows/lint.yml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
---
2+
name: 'Lint'
3+
4+
on:
5+
pull_request:
6+
branches:
7+
- 'master'
8+
paths:
9+
- '**.sh'
10+
- '**.md'
11+
12+
jobs:
13+
shellcheck:
14+
name: 'ShellCheck'
15+
runs-on: 'ubuntu-latest'
16+
steps:
17+
- uses: 'actions/checkout@v2'
18+
- name: 'Run shellcheck'
19+
uses: 'azohra/shell-linter@master'
20+
with:
21+
path: '*.sh'
22+
env:
23+
SHELLCHECK_OPTS: '-x'
24+
markdown-lint:
25+
name: 'Markdown Lint'
26+
runs-on: 'ubuntu-latest'
27+
steps:
28+
- uses: 'actions/checkout@v2'
29+
- name: 'Run markdownlint'
30+
uses: 'avto-dev/markdown-lint@master'
31+
with:
32+
args: '.'
33+
config: '.markdownlint.yml'

.github/workflows/release.yml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
---
2+
name: 'Release'
3+
4+
on:
5+
push:
6+
tags:
7+
- 'v*'
8+
9+
jobs:
10+
publish:
11+
name: 'Publish'
12+
runs-on: 'ubuntu-latest'
13+
steps:
14+
- uses: 'actions/checkout@v2'
15+
- name: 'Create GitHub Release'
16+
uses: 'anton-yurchenko/git-release@v3.4.2'
17+
env:
18+
GITHUB_TOKEN: '${{ secrets.GITHUB_TOKEN }}'
19+
DRAFT_RELEASE: 'false'
20+
PRE_RELEASE: 'false'
21+
CHANGELOG_FILE: 'CHANGELOG.md'
22+
ALLOW_EMPTY_CHANGELOG: 'false'
23+
ALLOW_TAG_PREFIX: 'true'

.github/workflows/shellcheck.yml

Lines changed: 0 additions & 10 deletions
This file was deleted.

.markdownlint.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
---
2+
MD013: false

CHANGELOG.md

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
# Changelog
2+
3+
All notable changes to this project will be documented in this file.
4+
5+
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).
6+
7+
## [Unreleased]
8+
9+
## [1.0.0] - 2020-11-02
10+
11+
Final release supporting FreeNAS 11.3!
12+
13+
### Added
14+
15+
- 3 system reports scripts (SMART, ZPool and UPS)
16+
- 1 config backup script
17+
- 2 information gathering script (CPU & drives temperature as well as drives identification)
18+
- A standalone bash function to format emails to be sent by the FreeNAS sendmail program
19+
20+
[Unreleased]: https://github.com/PlqnK/freenas-useful-scripts/compare/v1.0.0...HEAD
21+
[1.0.0]: https://github.com/PlqnK/freenas-useful-scripts/releases/tag/v1.0.0

0 commit comments

Comments
 (0)