Skip to content

Commit

Permalink
Merge pull request #172 from myii/feat/manage-github-workflows-commit…
Browse files Browse the repository at this point in the history
…lint

feat(workflows/commitlint): manage across formulas
  • Loading branch information
myii authored May 4, 2020
2 parents 420e71f + 1cd6aed commit 073ae11
Show file tree
Hide file tree
Showing 5 changed files with 39 additions and 2 deletions.
1 change: 1 addition & 0 deletions pillar.example
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,7 @@ ssf:
- vsftpd
- zabbix
semrel_files:
- .github/workflows/commitlint.yml
- bin/kitchen
- docs/TOFS_pattern.rst
- formula/libsaltcli.jinja
Expand Down
16 changes: 16 additions & 0 deletions ssf/.github/workflows/commitlint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# -*- coding: utf-8 -*-
# vim: ft=yaml
---
name: Commitlint
'on': [pull_request]

jobs:
lint:
runs-on: ubuntu-latest
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0
- uses: wagoid/commitlint-github-action@v1
4 changes: 2 additions & 2 deletions ssf/defaults.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@ ssf_node_anchors:
# An alternative method could be to use:
# `git describe --abbrev=0 --tags`
# yamllint disable rule:line-length rule:quoted-strings
title: "ci(kitchen+travis): adjust matrix to add '`'3000.2'`' & remove '`'2018.3'`'"
body: '* Automated using https://github.com/myii/ssf-formula/pull/171'
title: "ci(workflows/commitlint): add to repo [skip ci]"
body: '* Automated using https://github.com/myii/ssf-formula/pull/172'
# yamllint enable rule:line-length rule:quoted-strings
github:
owner: 'saltstack-formulas'
Expand Down
16 changes: 16 additions & 0 deletions ssf/files/default/.github/workflows/commitlint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# -*- coding: utf-8 -*-
# vim: ft=yaml
---
name: Commitlint
'on': [pull_request]

jobs:
lint:
runs-on: ubuntu-latest
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0
- uses: wagoid/commitlint-github-action@v1
4 changes: 4 additions & 0 deletions ssf/formulas.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -277,6 +277,8 @@ ssf_node_anchors:
- pillar.example
- pillar-with-views.example
semrel_files: &semrel_files_default
.github/workflows/commitlint.yml: &file__--github__workflows__commitlint--yml
<<: *file_default
bin/kitchen: &file__bin__kitchen
<<: *file_default
mode: 755
Expand Down Expand Up @@ -2211,6 +2213,7 @@ ssf:
- ssf/defaults.yaml
- ssf/formulas.yaml
semrel_files:
.github/workflows/commitlint.yml: *file__--github__workflows__commitlint--yml
docs/CONTRIBUTING.rst: *file__docs__CONTRIBUTING--rst
docs/TOFS_pattern.rst: *file__docs__TOFS_pattern--rst
formula/libtofs.jinja: *file__formula__libtofs--jinja
Expand Down Expand Up @@ -2243,6 +2246,7 @@ ssf:
travis: *travis_do_not_use_single_job_for_linters
use_tofs: true
semrel_files:
.github/workflows/commitlint.yml: *file__--github__workflows__commitlint--yml
docs/TOFS_pattern.rst:
<<: *file__docs__TOFS_pattern--rst
dest_file: 'TOFS_pattern.rst'
Expand Down

0 comments on commit 073ae11

Please sign in to comment.