Skip to content

Commit 6b4c424

Browse files
Actions追加 (#1)
* Actions追加 * usesするActions修正 * Add .gitignore * README修正 (#2) Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> * package.jsonやpackage-lock.jsonを直してあげたよ! (#3) Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> * PRのトリガー追加 * description修正 * README修正 (#4) Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> * path追加 Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
1 parent abc0a97 commit 6b4c424

24 files changed

+24630
-1
lines changed
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
name: Add to Task List
2+
3+
on:
4+
pull_request:
5+
types:
6+
- opened
7+
- reopened
8+
issues:
9+
types:
10+
- opened
11+
12+
jobs:
13+
add-to-task-list:
14+
runs-on: ubuntu-latest
15+
steps:
16+
- uses: dev-hato/[email protected]
17+
with:
18+
github_app_id: ${{ secrets.PROJECT_AUTOMATION_APP_ID }}
19+
github_app_private_key: ${{ secrets.PROJECT_AUTOMATION_PRIVATE_KEY }}
20+
project-url: https://github.com/orgs/dev-hato/projects/1

.github/workflows/create-release.yml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
---
2+
name: create-release
3+
4+
on:
5+
push:
6+
branches:
7+
- main
8+
paths:
9+
- .github/workflows/create-release.yml
10+
- scripts/action/**
11+
- action.yml
12+
13+
jobs:
14+
create-release:
15+
runs-on: ubuntu-latest
16+
steps:
17+
- uses: actions/[email protected]
18+
- uses: dev-hato/[email protected]
19+
with:
20+
github-token: ${{secrets.GITHUB_TOKEN}}
21+
22+
concurrency:
23+
group: ${{ github.workflow }}-${{ github.event_name }}-${{ github.ref }}
24+
cancel-in-progress: true

.github/workflows/format-json-yml.yml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
---
2+
name: format-json-yml
3+
4+
on:
5+
pull_request:
6+
types:
7+
- opened
8+
- synchronize
9+
- reopened
10+
- closed
11+
push:
12+
branches:
13+
- main
14+
15+
permissions:
16+
contents: write
17+
pull-requests: write
18+
19+
jobs:
20+
format-json-yml:
21+
runs-on: ubuntu-latest
22+
steps:
23+
- uses: actions/[email protected]
24+
with:
25+
fetch-depth: 0
26+
ref: ${{ github.event.pull_request.head.sha }}
27+
- uses: dev-hato/[email protected]
28+
with:
29+
github-token: ${{secrets.GITHUB_TOKEN}}
30+
31+
concurrency:
32+
group: ${{ github.workflow }}-${{ github.event_name }}-${{ github.ref }}
33+
cancel-in-progress: true
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
---
2+
name: github-actions-cache-cleaner
3+
4+
on:
5+
push:
6+
branches:
7+
- main
8+
schedule:
9+
- cron: '0 21 * * *' # 06:00 JST
10+
workflow_dispatch:
11+
pull_request:
12+
paths:
13+
- .github/workflows/github-actions-cache-cleaner.yml
14+
- scripts/action/**
15+
- action.yml
16+
17+
jobs:
18+
github-actions-cache-cleaner:
19+
runs-on: ubuntu-latest
20+
steps:
21+
- uses: actions/[email protected]
22+
- uses: ./
23+
with:
24+
github-token: ${{secrets.GITHUB_TOKEN}}
25+
26+
concurrency:
27+
group: ${{ github.workflow }}-${{ github.event_name }}-${{ github.ref }}
28+
cancel-in-progress: true
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
---
2+
name: renovate-config-validator
3+
4+
on:
5+
push:
6+
branches:
7+
- main
8+
pull_request:
9+
10+
jobs:
11+
renovate-config-validator:
12+
runs-on: ubuntu-latest
13+
14+
steps:
15+
- uses: actions/[email protected]
16+
- uses: actions/[email protected]
17+
with:
18+
cache: npm
19+
- run: bash "${GITHUB_WORKSPACE}/scripts/renovate_config_validator/renovate_config_validator/validate.sh"
20+
21+
concurrency:
22+
group: ${{ github.workflow }}-${{ github.event_name }}-${{ github.ref }}
23+
cancel-in-progress: true

.github/workflows/super-linter.yml

Lines changed: 64 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,64 @@
1+
---
2+
#################################
3+
#################################
4+
## Super Linter GitHub Actions ##
5+
#################################
6+
#################################
7+
name: Lint Code Base
8+
9+
#
10+
# Documentation:
11+
# https://docs.github.com/en/actions/learn-github-actions/workflow-syntax-for-github-actions
12+
#
13+
14+
#############################
15+
# Start the job on all push #
16+
#############################
17+
on:
18+
push:
19+
branches:
20+
- main
21+
pull_request:
22+
23+
###############
24+
# Set the Job #
25+
###############
26+
jobs:
27+
build:
28+
# Name the Job
29+
name: Lint Code Base
30+
# Set the agent to run on
31+
runs-on: ubuntu-latest
32+
33+
##################
34+
# Load all steps #
35+
##################
36+
steps:
37+
##########################
38+
# Checkout the code base #
39+
##########################
40+
- name: Checkout Code
41+
uses: actions/[email protected]
42+
with:
43+
# Full git history is needed to get a proper list
44+
# of changed files within `super-linter`
45+
fetch-depth: 0
46+
47+
- uses: actions/[email protected]
48+
with:
49+
cache: npm
50+
- run: npm ci
51+
52+
################################
53+
# Run Linter against code base #
54+
################################
55+
- name: Lint Code Base
56+
uses: github/super-linter/[email protected]
57+
env:
58+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
59+
LINTER_RULES_PATH: .
60+
PATH: /github/workspace/node_modules/.bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/node_modules/.bin:/venvs/ansible-lint/bin:/venvs/black/bin:/venvs/cfn-lint/bin:/venvs/cpplint/bin:/venvs/flake8/bin:/venvs/isort/bin:/venvs/mypy/bin:/venvs/pylint/bin:/venvs/snakefmt/bin:/venvs/snakemake/bin:/venvs/sqlfluff/bin:/venvs/yamllint/bin:/venvs/yq/bin:/var/cache/dotnet/tools:/usr/share/dotnet
61+
62+
concurrency:
63+
group: ${{ github.workflow }}-${{ github.event_name }}-${{ github.ref }}
64+
cancel-in-progress: true

.github/workflows/update-gitleaks.yml

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
---
2+
name: update-gitleaks
3+
4+
on:
5+
pull_request:
6+
types:
7+
- opened
8+
- synchronize
9+
- reopened
10+
- closed
11+
push:
12+
branches:
13+
- main
14+
15+
permissions:
16+
contents: write
17+
pull-requests: write
18+
19+
jobs:
20+
update-gitleaks:
21+
runs-on: ubuntu-latest
22+
steps:
23+
- uses: actions/[email protected]
24+
with:
25+
fetch-depth: 0
26+
ref: ${{ github.event.pull_request.head.sha }}
27+
- uses: actions/[email protected]
28+
with:
29+
cache: npm
30+
- name: Install packages
31+
run: npm ci
32+
- uses: dev-hato/[email protected]
33+
with:
34+
github-token: ${{secrets.GITHUB_TOKEN}}
35+
36+
concurrency:
37+
group: ${{ github.workflow }}-${{ github.event_name }}-${{ github.ref }}
38+
cancel-in-progress: true

.github/workflows/update-package.yml

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
---
2+
name: update-package
3+
4+
on:
5+
pull_request:
6+
types:
7+
- opened
8+
- synchronize
9+
- reopened
10+
- closed
11+
push:
12+
branches:
13+
- main
14+
15+
jobs:
16+
# npm installを実行し、package.jsonやpackage-lock.jsonに差分があればPRを作る
17+
update-package:
18+
runs-on: ubuntu-latest
19+
permissions:
20+
contents: write
21+
pull-requests: write
22+
steps:
23+
- uses: actions/[email protected]
24+
with:
25+
fetch-depth: 0
26+
ref: ${{ github.event.pull_request.head.sha }}
27+
- uses: actions/[email protected]
28+
with:
29+
cache: npm
30+
- run: npm install
31+
- uses: dev-hato/[email protected]
32+
with:
33+
github-token: ${{secrets.GITHUB_TOKEN}}
34+
branch-name-prefix: fix-package
35+
pr-title-prefix: package.jsonやpackage-lock.jsonを直してあげたよ!
36+
37+
concurrency:
38+
group: ${{ github.workflow }}-${{ github.event_name }}-${{ github.ref }}
39+
cancel-in-progress: true

.github/workflows/update-readme.yml

Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
---
2+
name: update-readme
3+
4+
on:
5+
pull_request:
6+
types:
7+
- opened
8+
- synchronize
9+
- reopened
10+
- closed
11+
push:
12+
branches:
13+
- main
14+
15+
jobs:
16+
update-readme:
17+
runs-on: ubuntu-latest
18+
permissions:
19+
contents: write
20+
pull-requests: write
21+
steps:
22+
- uses: actions/[email protected]
23+
with:
24+
fetch-depth: 0
25+
ref: ${{ github.event.pull_request.head.sha || github.sha }}
26+
- uses: actions/[email protected]
27+
with:
28+
cache: npm
29+
- run: npm ci
30+
- name: Get inputs markdown
31+
id: get_inputs_markdown
32+
uses: actions/[email protected]
33+
env:
34+
HEAD_REF: ${{github.event.pull_request.head.ref || github.head_ref}}
35+
with:
36+
github-token: ${{secrets.GITHUB_TOKEN}}
37+
result-encoding: string
38+
script: |
39+
const script = require('./scripts/update_readme/update_readme/get_inputs_markdown.js')
40+
return script()
41+
- env:
42+
INPUTS: ${{steps.get_inputs_markdown.outputs.result}}
43+
run: bash "${GITHUB_WORKSPACE}/scripts/update_readme/update_readme/update_readme.sh"
44+
- uses: dev-hato/[email protected]
45+
with:
46+
github-token: ${{secrets.GITHUB_TOKEN}}
47+
branch-name-prefix: fix-readme
48+
pr-title-prefix: README修正
49+
pr-description-prefix: READMEを修正しました。
50+
51+
concurrency:
52+
group: ${{ github.workflow }}-${{ github.event_name }}-${{ github.ref }}
53+
cancel-in-progress: true

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
node_modules

0 commit comments

Comments
 (0)