Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
A
AnimeThesaurus
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Packages
Packages
List
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issues
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
3rdeye
AnimeThesaurus
Commits
62d0185a
Commit
62d0185a
authored
Oct 01, 2021
by
Kyomotoi
Committed by
GitHub
Oct 01, 2021
Browse files
Options
Browse Files
Download
Plain Diff
🎨
改善 workflow 格式
parents
b7c30181
d2ce4571
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
21 deletions
+14
-21
.github/workflows/check.yml
.github/workflows/check.yml
+14
-21
No files found.
.github/workflows/check.yml
View file @
62d0185a
# This is a basic workflow to help you get started with Actions
name
:
检查 JSON 格式
name
:
Check JSON Format
# Controls when the action will run.
on
:
# Triggers the workflow on push or pull request events but only for the main branch
push
:
branches
:
[
main
]
branches
:
main
pull_request
:
branches
:
[
main
]
branches
:
main
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch
:
workflow_dispatch
:
# 手动执行
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs
:
# This workflow contains a single job called "build"
build
:
# The type of runner that the job will run on
check-json
:
runs-on
:
ubuntu-latest
# Steps represent a sequence of tasks that will be executed as part of the job
steps
:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
-
uses
:
actions/checkout@v2
-
name
:
Checkout Actions
uses
:
actions/checkout@v2
-
name
:
Setup Python
uses
:
actions/setup-python@v2
with
:
python-version
:
"
pypy-3.7".
# Faster
-
uses
:
actions/setup-python@v2
-
run
:
|
cat data.json | python -m json.tool | tee data.json
-
name
:
Check JSON
run
:
cat data.json | python -m json.tool | tee data.json
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment