-
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
4 changed files
with
112 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
name: Pipeline | ||
on: [push] | ||
jobs: | ||
pipeline: | ||
runs-on: ubuntu-latest | ||
permissions: | ||
contents: write | ||
packages: read | ||
statuses: write | ||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 | ||
ref: main | ||
|
||
- name: Super-linter | ||
uses: super-linter/[email protected] | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.WF_TOKEN }} | ||
VALIDATE_BASH: false | ||
VALIDATE_CHECKOV: false | ||
FIX_MARKDOWN: true | ||
FIX_MARKDOWN_PRETTIER: true | ||
FIX_NATURAL_LANGUAGE: true | ||
FIX_SHELL_SHFMT: true | ||
FIX_YAML_PRETTIER: true | ||
|
||
- name: Commit linting fixes | ||
if: github.ref_name != 'main' | ||
run: | | ||
git config --global user.email "[email protected]" | ||
git config --global user.name "Wesley Scholl" | ||
git add -A | ||
git commit -m "chore: fix linting issues" | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.WF_TOKEN }} | ||
|
||
- name: Commit and push linting fixes | ||
if: github.ref_name != 'main' | ||
uses: stefanzweifel/git-auto-commit-action@v5 | ||
with: | ||
branch: ${{ github.ref_name }} | ||
commit_message: "chore: fix linting issues" | ||
commit_user_name: Wesley Scholl | ||
commit_user_email: [email protected] | ||
|
||
- name: Merge branch | ||
uses: julbme/gh-action-merge-branch@v1 | ||
with: | ||
from: ${{ github.ref_name }} | ||
to: main | ||
message: Merged to main | ||
push_options: '--force' | ||
skip_fetch: true | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.WF_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
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,13 @@ | ||
# Super-linter summary | ||
|
||
| Language | Validation result | | ||
| ----------------- | ----------------- | | ||
| BASH_EXEC | Pass β | | ||
| GITLEAKS | Pass β | | ||
| JSCPD | Pass β | | ||
| MARKDOWN | Pass β | | ||
| MARKDOWN_PRETTIER | Pass β | | ||
| NATURAL_LANGUAGE | Pass β | | ||
| SHELL_SHFMT | Pass β | | ||
|
||
All files and directories linted successfully |