Skip to content

Commit 67b00c7

Browse files
committed
Strip pages/ early.
1 parent 20f71d3 commit 67b00c7

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

.github/workflows/publish_book.yml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -51,8 +51,6 @@ jobs:
5151
get_source_path() {
5252
local file=$1
5353
54-
file="${file#pages/}"
55-
5654
if [ "${{ inputs.is_index }}" = "true" ]; then
5755
if [[ "$file" =~ ^[a-z]{2}/ ]] || [[ "$file" =~ ^programming/ ]]; then
5856
echo "index/${file}"
@@ -98,8 +96,8 @@ jobs:
9896
log_msg() {
9997
local status=$1; local file=$2; local msg=$3
10098
101-
local source_file=$(get_source_path "$file")
10299
file="${file#pages/}"
100+
local source_file=$(get_source_path "$file")
103101
104102
if [ $status -eq 0 ]; then
105103
if [ -n "$msg" ]; then

0 commit comments

Comments
 (0)