-
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.
ci(GITHUB): upgrade workflows and notifications
- Loading branch information
1 parent
6698b53
commit bf2e75f
Showing
7 changed files
with
34 additions
and
33 deletions.
There are no files selected for viewing
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
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 |
---|---|---|
|
@@ -9,5 +9,10 @@ | |
"profile/vars/*.yml", | ||
"profile/tasks/post_install/*.yml", | ||
"profile/handlers/*.yml" | ||
] | ||
], | ||
"_GITHUB_ACTION_MARKDOWN_LINK_CHECK": "gaurav-nelson/[email protected]", | ||
"_GITHUB_GENERATE_CHANGELOG_ACTION": "scottbrenner/[email protected]", | ||
"_GITHUB_GITLEAKS_ACTION": "zricethezav/[email protected]", | ||
"_GITHUB_YAMLLINT_ACTION": "ibiqlik/action-yamllint@v3" | ||
} | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -69,7 +69,7 @@ jobs: | |
WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK }} | ||
|
||
- name: Documentation Test -- Documentation Validation | ||
uses: gaurav-nelson/[email protected] | ||
uses: {% endraw %}{{ cookiecutter._GITHUB_ACTION_MARKDOWN_LINK_CHECK }}{% raw %} | ||
with: | ||
use-quiet-mode: 'no' | ||
use-verbose-mode: 'yes' | ||
|
@@ -105,7 +105,7 @@ jobs: | |
|
||
- name: Release -- Generate Changelog | ||
if: contains(github.ref, '/tags/v') | ||
uses: scottbrenner/[email protected] | ||
uses: {% endraw %}{{ cookiecutter._GITHUB_GENERATE_CHANGELOG_ACTION }}{% raw %} | ||
id: Changelog | ||
env: | ||
REPO: ${{ github.repository }} | ||
|
@@ -155,7 +155,7 @@ jobs: | |
WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK }} | ||
|
||
- name: Security Test -- Run Gitleaks | ||
uses: zricethezav/gitleaks-action@master | ||
uses: {% endraw %}{{ cookiecutter._GITHUB_GITLEAKS_ACTION }}{% raw %} | ||
|
||
- name: Security Test -- Check Dependencies | ||
run: | | ||
|
@@ -172,39 +172,31 @@ jobs: | |
run: | | ||
./.github/scripts/notifications.sh "${NOTIFICATION}" ":x: security checks failed!" | ||
workflow_lint: | ||
workflow_lint_test: | ||
|
||
runs-on: ubuntu-latest | ||
strategy: | ||
max-parallel: 4 | ||
matrix: | ||
python-version: [3.8] | ||
|
||
steps: | ||
|
||
- name: Workflow Lint -- Checkout Repository | ||
uses: actions/checkout@v1 | ||
- name: Workflow Lint -- Set up Python ${{ matrix.python-version }} | ||
uses: actions/setup-python@v1 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
|
||
- name: Workflow Lint -- Setup Environment | ||
run: | | ||
source ./.github/scripts/setup.sh | ||
env: | ||
WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK }} | ||
- name: Workflow Lint -- Install Requirements | ||
run: | | ||
pip install yamllint | ||
|
||
- name: Workflow Lint -- Run Linter | ||
run: | | ||
yamllint .github/workflows -c ./profile/.yamllint -f standard | ||
uses: {% endraw %}{{ cookiecutter._GITHUB_YAMLLINT_ACTION }}{% raw %} | ||
with: | ||
format: standard | ||
file_or_dir: ./.github/workflows | ||
config_file: ./profile/.yamllint.yml | ||
|
||
- name: Workflow Lint -- Report Job Status (Success) | ||
run: | | ||
./.github/scripts/notifications.sh "${NOTIFICATION}" ":white_check_mark: workflow linting was successful!" | ||
- name: Workflow Lint -- Report Job Status (Failure) | ||
if: failure() | ||
run: | | ||
|
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
File renamed without changes.