mirror of
https://github.com/hahwul/WebHackersWeapons.git
synced 2024-10-01 01:25:58 -04:00
linint for action
This commit is contained in:
parent
3d05c9b2ff
commit
6f9d029ab2
14
.github/workflows/contributors.yml
vendored
14
.github/workflows/contributors.yml
vendored
@ -1,14 +1,14 @@
|
|||||||
|
---
|
||||||
name: Contributors
|
name: Contributors
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
branches:
|
branches: [main]
|
||||||
- main
|
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
inputs:
|
inputs:
|
||||||
logLevel:
|
logLevel:
|
||||||
description: 'manual run'
|
description: manual run
|
||||||
required: false
|
required: false
|
||||||
default: ''
|
default: ''
|
||||||
jobs:
|
jobs:
|
||||||
contributors:
|
contributors:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
54
.github/workflows/deploy.yml
vendored
54
.github/workflows/deploy.yml
vendored
@ -1,36 +1,34 @@
|
|||||||
|
---
|
||||||
name: Deploy
|
name: Deploy
|
||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
branches:
|
branches: [main]
|
||||||
- main
|
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
Deploy:
|
Deploy:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
- name: Set up Ruby
|
- name: Set up Ruby
|
||||||
uses: ruby/setup-ruby@v1
|
uses: ruby/setup-ruby@v1
|
||||||
with:
|
with:
|
||||||
ruby-version: 3.0
|
ruby-version: 3.0
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
run: gem install erb yaml
|
run: gem install erb yaml
|
||||||
- name: Run app
|
- name: Run app
|
||||||
run: |
|
run: |
|
||||||
ruby ./scripts/erb.rb
|
ruby ./scripts/erb.rb
|
||||||
- name: Make last_change
|
- name: Make last_change
|
||||||
run: date > ./scripts/last_change
|
run: date > ./scripts/last_change
|
||||||
- name: Commit files
|
- name: Commit files
|
||||||
run: |
|
run: |
|
||||||
git config --local user.email "hahwul@gmail.com"
|
git config --local user.email "hahwul@gmail.com"
|
||||||
git config --local user.name "WHW"
|
git config --local user.name "WHW"
|
||||||
git add README.md ./scripts/last_change
|
git add README.md ./scripts/last_change
|
||||||
git add ./categorize/*
|
git add ./categorize/*
|
||||||
git commit -m "Deploy README.md and Categorize Docs"
|
git commit -m "Deploy README.md and Categorize Docs"
|
||||||
- name: Push changes
|
- name: Push changes
|
||||||
uses: ad-m/github-push-action@master
|
uses: ad-m/github-push-action@master
|
||||||
with:
|
with:
|
||||||
github_token: ${{ secrets.GITHUB_TOKEN }}
|
github_token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
branch: ${{ github.ref }}
|
branch: ${{ github.ref }}
|
||||||
|
28
.github/workflows/yaml-lint.yml
vendored
28
.github/workflows/yaml-lint.yml
vendored
@ -1,15 +1,15 @@
|
|||||||
---
|
---
|
||||||
name: YAML Lint
|
name: YAML Lint
|
||||||
on:
|
on:
|
||||||
pull_request:
|
pull_request:
|
||||||
branches: [ "main" ]
|
branches: [main]
|
||||||
jobs:
|
jobs:
|
||||||
lintAllTheThings:
|
lintAllTheThings:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
- name: yaml-lint
|
- name: yaml-lint
|
||||||
uses: ibiqlik/action-yamllint@v3
|
uses: ibiqlik/action-yamllint@v3
|
||||||
with:
|
with:
|
||||||
file_or_dir: weapons/*.yaml
|
file_or_dir: weapons/*.yaml
|
||||||
config_file: .yamllint.yml
|
config_file: .yamllint.yml
|
||||||
|
Loading…
Reference in New Issue
Block a user