Skip to content

Commit

Permalink
chore: update workflow and close doocs#29
Browse files Browse the repository at this point in the history
  • Loading branch information
yanglbme committed Mar 5, 2021
1 parent c6a883c commit 71af216
Show file tree
Hide file tree
Showing 4 changed files with 25 additions and 25 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/branch-merge.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: Merge Branch

on:
push:
branches: [ imgbot ]
branches: [imgbot]

jobs:
merge-branch:
Expand All @@ -14,4 +14,4 @@ jobs:
github_token: ${{ github.token }}
source_ref: ${{ github.ref }}
target_branch: main
commit_message_template: '[Automated] Merged {source_ref} into {target_branch}'
commit_message_template: "[Automated] Merged {source_ref} into {target_branch}"
24 changes: 12 additions & 12 deletions .github/workflows/prettier.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,22 +4,22 @@ on:
pull_request:
push:
branches:
- main
- main

jobs:
prettier:
runs-on: ubuntu-latest

steps:
- name: Checkout
uses: actions/checkout@v2
with:
ref: ${{ github.head_ref }}
- name: Checkout
uses: actions/checkout@v2
with:
ref: ${{ github.head_ref }}

- name: Prettify
uses: creyD/[email protected]
with:
prettier_options: --write **/*.{md}
commit_message: 'docs: prettify code or document'
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Prettify
uses: creyD/[email protected]
with:
prettier_options: --write **/*.{md}
commit_message: "style: prettify code or document"
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
20 changes: 10 additions & 10 deletions .github/workflows/sync.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,26 +2,26 @@ name: Sync

on:
push:
branches: [ main ]
branches: [main]

jobs:
build:
runs-on: ubuntu-latest
if: github.repository == 'doocs/technical-books'
steps:
- uses: actions/checkout@v2
- name: Sync to Gitee
uses: wearerequired/git-mirror-action@master
env:
- uses: actions/checkout@v2

- name: Sync to Gitee
uses: wearerequired/git-mirror-action@master
env:
SSH_PRIVATE_KEY: ${{ secrets.GITEE_RSA_PRIVATE_KEY }}
with:
with:
source-repo: [email protected]:doocs/technical-books.git
destination-repo: [email protected]:Doocs/technical-books.git

- name: Build Gitee Pages
uses: yanglbme/gitee-pages-action@main
with:
- name: Build Gitee Pages
uses: yanglbme/gitee-pages-action@main
with:
gitee-username: yanglbme
gitee-password: ${{ secrets.GITEE_PASSWORD }}
gitee-repo: doocs/technical-books
Expand Down
2 changes: 1 addition & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
search: ["/"],
plugins: [
function (hook) {
var footer = [
const footer = [
"<hr/>",
"<footer>",
'<span>Copyright © 2018-2021 <a href="https://github.com/doocs" target="_blank">Doocs</a> All rights reserved.</span>',
Expand Down

0 comments on commit 71af216

Please sign in to comment.