Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(workflows/commitlint): manage across formulas #172

Merged
merged 1 commit into from
May 4, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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