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
|
||||
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
|
||||
|
54
.github/workflows/deploy.yml
vendored
54
.github/workflows/deploy.yml
vendored
@ -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 }}
|
||||
|
28
.github/workflows/yaml-lint.yml
vendored
28
.github/workflows/yaml-lint.yml
vendored
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user