Skip to content

Commit

Permalink
[docs] Fixes djl-serving repo tags
Browse files Browse the repository at this point in the history
  • Loading branch information
frankfliu committed Aug 7, 2024
1 parent 135fc56 commit 7aecc7c
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,7 @@ on:
inputs:
version-number:
type: string
description: What is the new version number (ex. v0.28.0) for the website? If updating dev, leave this blank.
default: master
description: version tag (ex. v0.30.0). If updating master, leave this blank.
required: false

jobs:
Expand Down Expand Up @@ -55,14 +54,14 @@ jobs:
uses: actions/checkout@v4
with:
repository: 'deepjavalibrary/djl-serving'
ref: ${{ github.event.inputs.version-number }}
ref: ${{ [ -z github.event.inputs.version-number ] && 'master' || "$github.event.inputs.version-number:1:6"-dlc }}
path: docs/serving

- name: Checkout DJL-Demo
uses: actions/checkout@v4
with:
repository: 'deepjavalibrary/djl-demo'
ref: ${{ github.event.inputs.version-number }}
ref: ${{ github.event.inputs.version-number || 'master' }}
path: docs/demos

- name: Cache Jupyter Notebooks
Expand Down

0 comments on commit 7aecc7c

Please sign in to comment.