Skip to content

Commit 6f9d029

Browse files
committed
linint for action
1 parent 3d05c9b commit 6f9d029

File tree

3 files changed

+47
-49
lines changed

3 files changed

+47
-49
lines changed

.github/workflows/contributors.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
1+
---
12
name: Contributors
23
on:
34
push:
4-
branches:
5-
- main
5+
branches: [main]
66
workflow_dispatch:
7-
inputs:
8-
logLevel:
9-
description: 'manual run'
10-
required: false
11-
default: ''
7+
inputs:
8+
logLevel:
9+
description: manual run
10+
required: false
11+
default: ''
1212
jobs:
1313
contributors:
1414
runs-on: ubuntu-latest

.github/workflows/deploy.yml

Lines changed: 26 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -1,36 +1,34 @@
1+
---
12
name: Deploy
2-
33
on:
44
push:
5-
branches:
6-
- main
5+
branches: [main]
76
workflow_dispatch:
8-
97
jobs:
108
Deploy:
119
runs-on: ubuntu-latest
1210
steps:
13-
- uses: actions/checkout@v2
14-
- name: Set up Ruby
15-
uses: ruby/setup-ruby@v1
16-
with:
17-
ruby-version: 3.0
18-
- name: Install dependencies
19-
run: gem install erb yaml
20-
- name: Run app
21-
run: |
22-
ruby ./scripts/erb.rb
23-
- name: Make last_change
24-
run: date > ./scripts/last_change
25-
- name: Commit files
26-
run: |
27-
git config --local user.email "[email protected]"
28-
git config --local user.name "WHW"
29-
git add README.md ./scripts/last_change
30-
git add ./categorize/*
31-
git commit -m "Deploy README.md and Categorize Docs"
32-
- name: Push changes
33-
uses: ad-m/github-push-action@master
34-
with:
35-
github_token: ${{ secrets.GITHUB_TOKEN }}
36-
branch: ${{ github.ref }}
11+
- uses: actions/checkout@v2
12+
- name: Set up Ruby
13+
uses: ruby/setup-ruby@v1
14+
with:
15+
ruby-version: 3.0
16+
- name: Install dependencies
17+
run: gem install erb yaml
18+
- name: Run app
19+
run: |
20+
ruby ./scripts/erb.rb
21+
- name: Make last_change
22+
run: date > ./scripts/last_change
23+
- name: Commit files
24+
run: |
25+
git config --local user.email "[email protected]"
26+
git config --local user.name "WHW"
27+
git add README.md ./scripts/last_change
28+
git add ./categorize/*
29+
git commit -m "Deploy README.md and Categorize Docs"
30+
- name: Push changes
31+
uses: ad-m/github-push-action@master
32+
with:
33+
github_token: ${{ secrets.GITHUB_TOKEN }}
34+
branch: ${{ github.ref }}

.github/workflows/yaml-lint.yml

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
---
2-
name: YAML Lint
3-
on:
4-
pull_request:
5-
branches: [ "main" ]
6-
jobs:
7-
lintAllTheThings:
8-
runs-on: ubuntu-latest
9-
steps:
10-
- uses: actions/checkout@v3
11-
- name: yaml-lint
12-
uses: ibiqlik/action-yamllint@v3
13-
with:
14-
file_or_dir: weapons/*.yaml
15-
config_file: .yamllint.yml
2+
name: YAML Lint
3+
on:
4+
pull_request:
5+
branches: [main]
6+
jobs:
7+
lintAllTheThings:
8+
runs-on: ubuntu-latest
9+
steps:
10+
- uses: actions/checkout@v3
11+
- name: yaml-lint
12+
uses: ibiqlik/action-yamllint@v3
13+
with:
14+
file_or_dir: weapons/*.yaml
15+
config_file: .yamllint.yml

0 commit comments

Comments
 (0)