-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
202 additions
and
20 deletions.
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,85 @@ | ||
--- | ||
|
||
on: # yamllint disable-line rule:truthy | ||
pull_request: | ||
branches: | ||
- master | ||
|
||
name: 🧹 Fix coding standards | ||
|
||
jobs: | ||
commit-linting: | ||
timeout-minutes: 4 | ||
runs-on: ubuntu-latest | ||
concurrency: | ||
cancel-in-progress: true | ||
group: commit-linting-${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} | ||
permissions: | ||
contents: read | ||
pull-requests: read | ||
steps: | ||
- name: 📦 Check out the codebase | ||
uses: actions/[email protected] | ||
|
||
- name: 🧐 Lint commits using "commitlint" | ||
uses: wagoid/[email protected] | ||
with: | ||
configFile: ${{ github.workspace }}/.github/.commitlint.config.mjs | ||
failOnWarnings: false | ||
failOnErrors: true | ||
helpURL: 'https://github.com/conventional-changelog/commitlint/#what-is-commitlint' | ||
|
||
yaml-linting: | ||
timeout-minutes: 4 | ||
runs-on: ubuntu-latest | ||
concurrency: | ||
cancel-in-progress: true | ||
group: yaml-linting-${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} | ||
permissions: | ||
contents: read | ||
pull-requests: read | ||
steps: | ||
- name: 📦 Check out the codebase | ||
uses: actions/[email protected] | ||
|
||
- name: 🧐 Lint YAML files | ||
uses: ibiqlik/[email protected] | ||
with: | ||
config_file: .github/.yamllint.yaml | ||
file_or_dir: '.' | ||
strict: true | ||
|
||
markdown-linting: | ||
timeout-minutes: 4 | ||
runs-on: ubuntu-latest | ||
concurrency: | ||
cancel-in-progress: true | ||
group: markdown-linting-${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} | ||
steps: | ||
- name: 📦 Check out the codebase | ||
uses: actions/[email protected] | ||
|
||
- name: 🧐 Lint Markdown files | ||
uses: DavidAnson/[email protected] | ||
with: | ||
config: '.github/.markdownlint.json' | ||
globs: | | ||
**/*.md | ||
!CHANGELOG.md | ||
ansible-linting: | ||
timeout-minutes: 4 | ||
runs-on: ubuntu-latest | ||
concurrency: | ||
cancel-in-progress: true | ||
group: ansible-linting-${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} | ||
env: | ||
YAMLLINT_CONFIG_FILE: '${{ github.workspace }}/.github/.yamllint.yaml' | ||
steps: | ||
- name: 📦 Check out the codebase | ||
uses: actions/[email protected] | ||
|
||
- name: 🧐 Lint Ansible files | ||
uses: ansible/[email protected] | ||
with: | ||
args: '-c ${{ github.workspace }}/.github/.ansible-lint.yml' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
--- | ||
|
||
on: # yamllint disable-line rule:truthy | ||
workflow_run: | ||
types: | ||
- completed | ||
workflows: | ||
- '🧪 Test Docker images' | ||
|
||
name: 📥 Merge pull requests | ||
|
||
jobs: | ||
merge: | ||
runs-on: ubuntu-latest | ||
timeout-minutes: 5 | ||
if: > | ||
github.event.workflow_run.event == 'pull_request' && | ||
github.event.workflow_run.conclusion == 'success' && | ||
( | ||
(github.actor == 'renovate[bot]' && | ||
startsWith(github.event.workflow_run.head_commit.message, 'deps(deps)') | ||
) || | ||
(github.actor == 'lotyp' && | ||
startsWith(github.event.workflow_run.head_commit.message, 'chore(master)') | ||
) | ||
) | ||
steps: | ||
- name: 🙋♂️ Request reviewer from @way-finder-bot | ||
uses: wayofdev/gh-actions/actions/github/pull-request/[email protected] | ||
with: | ||
reviewer: 'way-finder-bot' | ||
github-token: "${{ secrets.WAY_FINDER_BOT_TOKEN }}" | ||
|
||
- name: 🙋♂️ Assign @way-finder-bot | ||
uses: wayofdev/gh-actions/actions/github/pull-request/[email protected] | ||
with: | ||
assignee: 'way-finder-bot' | ||
github-token: "${{ secrets.WAY_FINDER_BOT_TOKEN }}" | ||
|
||
- name: ✅ Approve pull request | ||
uses: wayofdev/gh-actions/actions/github/pull-request/[email protected] | ||
with: | ||
github-token: "${{ secrets.WAY_FINDER_BOT_TOKEN }}" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters