test
This commit is contained in:
parent
54bb61a8de
commit
ce707235a9
|
|
@ -1,14 +1,15 @@
|
||||||
name: Linux
|
name: Linux
|
||||||
|
|
||||||
on: [push, pull_request]
|
on: [push, pull_request]
|
||||||
|
permissions:
|
||||||
|
contents: write
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
|
|
||||||
runs-on: ubuntu-20.04
|
runs-on: ubuntu-20.04
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v1
|
- uses: actions/checkout@v3
|
||||||
|
|
||||||
- name: 下载submodule源码
|
- name: 下载submodule源码
|
||||||
run: mv -f .gitmodules_github .gitmodules && git submodule sync && git submodule update --init
|
run: mv -f .gitmodules_github .gitmodules && git submodule sync && git submodule update --init
|
||||||
|
|
@ -39,8 +40,8 @@ jobs:
|
||||||
- name: Commit and push if ./www/swagger/openapi.json changed
|
- name: Commit and push if ./www/swagger/openapi.json changed
|
||||||
run: |
|
run: |
|
||||||
git diff --exit-code ./www/swagger/openapi.json || (
|
git diff --exit-code ./www/swagger/openapi.json || (
|
||||||
git config --global user.name "github-actions[bot]"
|
git config user.name github-actions
|
||||||
git config --global user.email "github-actions[bot]@users.noreply.github.com"
|
git config user.email github-actions@github.com
|
||||||
git add ./www/swagger/openapi.json
|
git add ./www/swagger/openapi.json
|
||||||
git commit -m "update openapi.json"
|
git commit -m "update openapi.json"
|
||||||
git push origin HEAD:master
|
git push origin HEAD:master
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue