-
Notifications
You must be signed in to change notification settings - Fork 0
58 lines (54 loc) · 1.64 KB
/
pipeline.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
name: Pipeline
on: [push]
jobs:
pipeline:
runs-on: ubuntu-latest
if: github.ref != 'refs/heads/main'
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 }}