mirror of
https://github.com/doocs/advanced-java.git
synced 2025-03-22 10:40:05 +08:00
chore: upgrade github actions
This commit is contained in:
parent
72c825a6ce
commit
8a3b12b5c6
4
.github/workflows/branch-merge.yml
vendored
4
.github/workflows/branch-merge.yml
vendored
@ -2,7 +2,7 @@ name: Merge Branch
|
|||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
branches: [ imgbot ]
|
branches: [imgbot]
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
merge-branch:
|
merge-branch:
|
||||||
@ -15,4 +15,4 @@ jobs:
|
|||||||
github_token: ${{ github.token }}
|
github_token: ${{ github.token }}
|
||||||
source_ref: ${{ github.ref }}
|
source_ref: ${{ github.ref }}
|
||||||
target_branch: main
|
target_branch: main
|
||||||
commit_message_template: '[Automated] Merged {source_ref} into {target_branch}'
|
commit_message_template: "[Automated] Merged {source_ref} into {target_branch}"
|
||||||
|
24
.github/workflows/prettier.yml
vendored
24
.github/workflows/prettier.yml
vendored
@ -2,22 +2,22 @@ name: Prettier
|
|||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
branches: [ main ]
|
branches: [main]
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
prettier:
|
prettier:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
if: github.repository == 'doocs/advanced-java'
|
if: github.repository == 'doocs/advanced-java'
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v2
|
||||||
with:
|
with:
|
||||||
ref: ${{ github.head_ref }}
|
ref: ${{ github.head_ref }}
|
||||||
|
|
||||||
- name: Prettify
|
- name: Prettify
|
||||||
uses: creyD/prettier_action@v3.3
|
uses: creyD/prettier_action@v3.3
|
||||||
with:
|
with:
|
||||||
prettier_options: --write **/*.{md}
|
prettier_options: --write **/*.{md}
|
||||||
commit_message: 'style: prettify code or document'
|
commit_message: "style: prettify code or document"
|
||||||
env:
|
env:
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
18
.github/workflows/rebase.yml
vendored
18
.github/workflows/rebase.yml
vendored
@ -1,6 +1,6 @@
|
|||||||
name: Automatic Rebase
|
name: Automatic Rebase
|
||||||
|
|
||||||
on:
|
on:
|
||||||
issue_comment:
|
issue_comment:
|
||||||
types: [created]
|
types: [created]
|
||||||
|
|
||||||
@ -10,11 +10,11 @@ jobs:
|
|||||||
if: github.event.issue.pull_request != '' && contains(github.event.comment.body, '/rebase')
|
if: github.event.issue.pull_request != '' && contains(github.event.comment.body, '/rebase')
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout the latest code
|
- name: Checkout the latest code
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v2
|
||||||
with:
|
with:
|
||||||
fetch-depth: 0
|
fetch-depth: 0
|
||||||
- name: Automatic Rebase
|
- name: Automatic Rebase
|
||||||
uses: cirrus-actions/rebase@1.4
|
uses: cirrus-actions/rebase@1.4
|
||||||
env:
|
env:
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
2
.github/workflows/sync.yml
vendored
2
.github/workflows/sync.yml
vendored
@ -2,7 +2,7 @@ name: Sync
|
|||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
branches: [ main ]
|
branches: [main]
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
|
Loading…
Reference in New Issue
Block a user