Skip to content

Commit 64831d7

Browse files
committed
🔄 Synced local '.github/workflows/' with remote '.github/workflows/'
release-
1 parent f68740e commit 64831d7

2 files changed

Lines changed: 7 additions & 8 deletions

File tree

.github/workflows/pull_request.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -168,12 +168,11 @@ jobs:
168168
id: commit
169169
run: |
170170
branch_name='preview-${{ github.event.pull_request.number }}'
171-
git config --global pull.rebase true
172171
git diff origin/main -- docs >/dev/null && changes=true || changes=false
173172
echo "changes=$changes" >> $GITHUB_OUTPUT
174173
git add . --force
175174
git commit -m 'Render preview' || echo "No changes to commit"
176-
git pull --set-upstream origin $branch_name --allow-unrelated-histories --strategy-option=ours
175+
git pull --rebase --set-upstream origin $branch_name --allow-unrelated-histories --strategy-option=ours
177176
git push --force || echo "No changes to commit"
178177
shell: bash
179178

.github/workflows/render-all.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ jobs:
8888
8989
render-tocless:
9090
name: Render TOC-less version for Leanpub or Coursera
91-
needs: [yaml-check]
91+
needs: [yaml-check, render-bookdown]
9292
runs-on: ubuntu-latest
9393
container:
9494
image: ${{needs.yaml-check.outputs.rendering_docker_image}}
@@ -122,7 +122,7 @@ jobs:
122122
git fetch origin
123123
git add --force docs/no_toc*
124124
git commit -m 'Render toc-less' || echo "No changes to commit"
125-
git pull --allow-unrelated-histories --strategy-option=ours
125+
git pull --set-upstream origin $branch_name --allow-unrelated-histories --strategy-option=ours
126126
git push -u origin main || echo "No changes to push"
127127
128128
render-leanpub:
@@ -169,11 +169,11 @@ jobs:
169169
git fetch origin
170170
git add .
171171
git commit -m 'Delete manuscript folder' || echo "No changes to commit"
172-
git pull --allow-unrelated-histories --strategy-option=ours
172+
git pull --set-upstream origin $branch_name --allow-unrelated-histories --strategy-option=ours
173173
git push -u origin main || echo "No changes to push"
174174
175175
- name: Run ottrpal::bookdown_to_embed_leanpub
176-
if: needs.yaml-check.outputs.toggle_quiz_check == 'no'
176+
if: ${{ needs.yaml-check.outputs.toggle_quiz_check == 'no'}}
177177
run: |
178178
Rscript -e "ottrpal::bookdown_to_embed_leanpub(
179179
render = FALSE, \
@@ -182,7 +182,7 @@ jobs:
182182
quiz_dir = NULL)"
183183
184184
- name: Run ottrpal::bookdown_to_embed_leanpub
185-
if: needs.yaml-check.outputs.toggle_quiz_check == 'yes'
185+
if: ${{ needs.yaml-check.outputs.toggle_quiz_check == 'yes'}}
186186
run: |
187187
Rscript -e "ottrpal::bookdown_to_embed_leanpub(
188188
render = FALSE, \
@@ -244,5 +244,5 @@ jobs:
244244
git add --force resources/*
245245
git add --force docs/*
246246
git commit -m 'Render Coursera quizzes' || echo "No changes to commit"
247-
git pull --allow-unrelated-histories --strategy-option=ours
247+
git pull --rebase --allow-unrelated-histories --strategy-option=ours
248248
git push -u origin main || echo "No changes to push"

0 commit comments

Comments
 (0)