Skip to content

Commit 496426a

Browse files
authored
Merge pull request #149 from Openscapes/empty-commit-restart-build
Add snippet for empty commit to trigger build
2 parents 9edfb1d + 7ba196c commit 496426a

File tree

2 files changed

+36
-0
lines changed

2 files changed

+36
-0
lines changed

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,3 +9,5 @@ _site/
99

1010
.DS_Store
1111
.vscode/settings.json
12+
13+
**/*.quarto_ipynb

approach/tooling.md

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -478,3 +478,37 @@ champ_emails[is.na(champ_emails)] <- ""
478478
write_clip(champ_emails)
479479
```
480480
:::
481+
482+
::: {.callout collapse="true"}
483+
484+
## Restart GitHub Actions or Netlify build/deploy preview
485+
486+
Sometimes a GitHub Actions workflow or Netlify Deploy preview process will stall
487+
for an unknown reason, and you just need to restart it to give it a little nudge.
488+
489+
If it is a GitHub Actions workflow you can go to the "Actions" tab, click on the
490+
running/stalled workflow, and click "Cancel Workflow" and then "Re-run jobs".
491+
492+
If it is a Netlify Deployment (or deploy preview), a
493+
[similar workflow](https://docs.netlify.com/deploy/manage-deploys/manage-deploys-overview/) is
494+
available by logging in to your Netlify account.
495+
496+
If you don't have access to those GUI tools (e.g., if you don't have login credentials),
497+
you can push an _empty commit_ to the repo which should restart the stuck process.
498+
499+
The terminal command to create an empty commit is:
500+
501+
```
502+
git commit --allow-empty -m "commit message"
503+
```
504+
505+
Where "commit message" could be something meaningful like:
506+
507+
```
508+
git commit --allow-empty -m "trigger netlify deploy preview"
509+
```
510+
511+
Then push to the repository (`git push` or with the RStudio/Positron/VSCode GUI)
512+
and it should trigger a new build, but with no actual changes to the repo contents.
513+
514+
:::

0 commit comments

Comments
 (0)