Skip to content

⬇ Installation

libbash can be installed as a git submodule in the directory with the script for ease of updating.

Project layout
myproject/
├─ libbash/
└─ myscript.sh
git submodule add https://github.com/nicholaswilde/libbash
git clone https://github.com/nicholaswilde/libbash.git

⬆ Update

From the base dir with libbash submodule installed.

task update
git submodule update --init --recursive --remote

🤖 Automatic Update

To keep libbash up-to-date with the latest version of of the libraries, the Dependabot GitHub app can be used. The checks daily if there are updates in any submodules. If it finds any update in the libraries, it will create a PR to update the libraries to the latest versions.

⚙ Setup Dependabot

Enable Dependabot in your repository by clicking Enable Dependabot button under Insights > Dependency Graph > Dependabot settings of your repository. For more information please check GitHub Documentation.

Create a dependabot.yml file in the .github folder of your repository with the following content:

.github/dependabot.yml
---
# Update dependencies

version: 2
updates:
  # Update the git submodules
  - package-ecosystem: "gitsubmodule"
    directory: "/"
    schedule:
      interval: "daily"
    labels:
      - "dependencies"
      - "automerge"

You are all set. Now, dependabot will check for sub-module update daily. It will create a PR to your site if it finds any update in the theme.

To know more about the configuration options of Dependabot, please visit here.