Skip to content

Commit

Permalink
Check there are changes before committing when building docs in GitHu…
Browse files Browse the repository at this point in the history
…b Actions workflow (#11)
  • Loading branch information
maouw authored Oct 28, 2023
1 parent edc61e6 commit 8ab24d9
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 163 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/build-documentation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,5 +39,6 @@ jobs:
[ -n "${new_commit_msg:-}" ] && new_commit_msg="${new_commit_msg} "
git add install.sh && new_commit_msg="Rebuilt install.sh" && commit_msg="${new_commit_msg:-}"
fi
git commit -am "${commit_msg}" && git push
[ -n "${commit_msg:-}" ] && git commit -am "${commit_msg}" && git push
fi
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ ssh [email protected]
After you've connected to the login node, you can download and install `hyakvnc` by running the following command. Copy and paste it into the terminal window where you are connected to the login node and press enter:

```bash
eval "$(curl -fsSL https://raw.githubusercontent.com//maouw/hyakvnc/main/install.sh)"
eval "$(curl -fsSL https://raw.githubusercontent.com//maouw/hyakvnc/gh-build-fix/install.sh)"
```

This will download and install `hyakvnc` to your `~/.local/bin` directory and add it to your `$PATH` so you can run it by typing `hyakvnc` into the terminal window.
Expand Down
160 changes: 0 additions & 160 deletions ghcr_get_token.sh

This file was deleted.

2 changes: 1 addition & 1 deletion install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ _install_hyakvnc() {
_HYAKVNC_DIR="${_HYAKVNC_DIR:-${HOME}/.hyakvnc}" # %% Local directory to store application data (default: `$HOME/.hyakvnc`)
_HYAKVNC_REPO_DIR="${_HYAKVNC_REPO_DIR:-${_HYAKVNC_DIR}/hyakvnc}" # Local directory to store git repository (default: `$HYAKVNC_DIR/hyakvnc`)
_HYAKVNC_REPO_URL="${_HYAKVNC_REPO_URL:-"https://github.com/maouw/hyakvnc"}"
_HYAKVNC_REPO_BRANCH="${_HYAKVNC_REPO_BRANCH:-"main"}"
_HYAKVNC_REPO_BRANCH="${_HYAKVNC_REPO_BRANCH:-"gh-build-fix"}"

# shellcheck disable=SC2016
_UNEXPANDED_BIN_INSTALL_DIR='${HOME}/.local/bin' # Local directory to store executable (default: `$HOME/.local/bin`)
Expand Down

0 comments on commit 8ab24d9

Please sign in to comment.