Skip to article frontmatterSkip to article content

You may be familiar with GitHub Actions: it is a widely used continuous integration tool which can easily and automatically publish your Jupyter Book as a website. This lesson is designed to get you familiar with GitHub Actions in your Jupyter Book and learn how to manipulate them.

Read it

WIP

Observe it

WIP

Break it

WIP

Change it

Here we will modify the workflow to add a new feature: automatically updating the “last edited” date in our published book.

The following bash script will modify date: field in the myst.yml file.

WIP

- name: Add current date to myst.yml
  shell: bash
  run: |
      BUILD_DATE="$(date +'%Y-%m-%d')"
      sed -i "s|\${BUILD_DATE}|${BUILD_DATE}|g" myst.yml
      echo "myst.yml:"
      grep -nE '^\s*date:' myst.yml

date: ${BUILD_DATE}