We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7ea5e70 commit 4fb1872Copy full SHA for 4fb1872
hooks/environment
@@ -3,8 +3,11 @@ set -ueo pipefail
3
4
PLUGIN_DIR=$(realpath $(dirname "${BASH_SOURCE[0]}")/..)
5
6
-git -C $PLUGIN_DIR checkout main
7
-git -C $PLUGIN_DIR pull
+# Ensure main isn't kept stale
+if [[ "$PLUGIN_DIR" == */main ]]; then
8
+ git -C $PLUGIN_DIR checkout main
9
+ git -C $PLUGIN_DIR pull
10
+fi
11
12
BAO_ADDR=https://vault.giellalt.org
13
BAO_TOKEN=$(buildkite-agent secret get divvun_actions_openbao_service_token)
0 commit comments