Skip to content

Commit

Permalink
fix edit-time and pdf
Browse files Browse the repository at this point in the history
  • Loading branch information
ZanderZhao committed Mar 9, 2020
1 parent e489038 commit bb3fc78
Show file tree
Hide file tree
Showing 9 changed files with 217 additions and 244 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/gitbook-action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:

# example1
- name: Gitbook Action
uses: zanderzhao/gitbook-action@v1.2
uses: zanderzhao/gitbook-action@master #v1.2.2
with:
token: ${{ secrets.PERSONAL_TOKEN }}
time_zone: Asia/Shanghai
Expand All @@ -24,7 +24,7 @@ jobs:

# example2
- name: Gitbook Action
uses: zanderzhao/gitbook-action@v1.2
uses: zanderzhao/gitbook-action@master #v1.2.2
with:
token: ${{ secrets.PERSONAL_TOKEN }}
time_zone: Asia/Shanghai
Expand Down
6 changes: 2 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
# Container image that runs your code
FROM node:10

# Copies your code file from your action repository to the filesystem path `/` of the container
FROM zanderzhao/gitbook-action

COPY entrypoint.sh /entrypoint.sh

# Code file to execute when the docker container starts up (`entrypoint.sh`)
ENTRYPOINT ["/entrypoint.sh"]
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:
- name: Checkout action
uses: actions/checkout@v2
- name: Gitbook Action
uses: zanderzhao/gitbook-action@v2
uses: zanderzhao/gitbook-action@v1.2.2
with:
token: ${{ secrets.PERSONAL_TOKEN }}
```
Expand Down Expand Up @@ -140,6 +140,8 @@ publish3_dir
publish3_cname
publish3_push_force
publish3_remove_last_build
font_install
not_clean
```


Expand Down
10 changes: 6 additions & 4 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -88,11 +88,9 @@ inputs:
gitbook_cli_version:
description: 'Default is 2.3.2, can choose from https://www.npmjs.com/package/gitbook-cli?activeTab=versions'
required: false
default: '2.3.2'
gitbook_version:
description: 'Default is 3.2.3, can choose from https://www.npmjs.com/package/gitbook?activeTab=versions'
required: false
default: '3.2.3'
gitbook_pdf:
description: 'Set true will generate pdf file'
required: false
Expand Down Expand Up @@ -244,9 +242,12 @@ inputs:
required: false
default: true
not_clean:
description: 'Default false. Set true not remove working file'
description: 'Default false. Set true will not remove working file'
required: false
default: false
font_install:
description: 'Install font for pdf'
required: false
runs:
using: 'docker'
image: 'Dockerfile'
Expand Down Expand Up @@ -316,4 +317,5 @@ runs:
- ${{ inputs.publish3_cname }}
- ${{ inputs.publish3_push_force }}
- ${{ inputs.publish3_remove_last_build }}
- ${{ inputs.not_clean }}
- ${{ inputs.not_clean }}
- ${{ inputs.font_install }}
Loading

0 comments on commit bb3fc78

Please sign in to comment.