linint for action

This commit is contained in:
HAHWUL 2024-01-02 01:12:05 +09:00
parent 3d05c9b2ff
commit 6f9d029ab2
3 changed files with 47 additions and 49 deletions

View File

@ -1,14 +1,14 @@
---
name: Contributors
on:
push:
branches:
- main
branches: [main]
workflow_dispatch:
inputs:
logLevel:
description: 'manual run'
required: false
default: ''
inputs:
logLevel:
description: manual run
required: false
default: ''
jobs:
contributors:
runs-on: ubuntu-latest

View File

@ -1,36 +1,34 @@
---
name: Deploy
on:
push:
branches:
- main
branches: [main]
workflow_dispatch:
jobs:
Deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: 3.0
- name: Install dependencies
run: gem install erb yaml
- name: Run app
run: |
ruby ./scripts/erb.rb
- name: Make last_change
run: date > ./scripts/last_change
- name: Commit files
run: |
git config --local user.email "hahwul@gmail.com"
git config --local user.name "WHW"
git add README.md ./scripts/last_change
git add ./categorize/*
git commit -m "Deploy README.md and Categorize Docs"
- name: Push changes
uses: ad-m/github-push-action@master
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
branch: ${{ github.ref }}
- uses: actions/checkout@v2
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: 3.0
- name: Install dependencies
run: gem install erb yaml
- name: Run app
run: |
ruby ./scripts/erb.rb
- name: Make last_change
run: date > ./scripts/last_change
- name: Commit files
run: |
git config --local user.email "hahwul@gmail.com"
git config --local user.name "WHW"
git add README.md ./scripts/last_change
git add ./categorize/*
git commit -m "Deploy README.md and Categorize Docs"
- name: Push changes
uses: ad-m/github-push-action@master
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
branch: ${{ github.ref }}

View File

@ -1,15 +1,15 @@
---
name: YAML Lint
on:
pull_request:
branches: [ "main" ]
jobs:
lintAllTheThings:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: yaml-lint
uses: ibiqlik/action-yamllint@v3
with:
file_or_dir: weapons/*.yaml
config_file: .yamllint.yml
name: YAML Lint
on:
pull_request:
branches: [main]
jobs:
lintAllTheThings:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: yaml-lint
uses: ibiqlik/action-yamllint@v3
with:
file_or_dir: weapons/*.yaml
config_file: .yamllint.yml