forked from clan/clan-infra
fix shellcheck errors
This commit is contained in:
parent
e0b7df1590
commit
b2d0830e14
@ -8,5 +8,5 @@ fi
|
|||||||
GITEA_TOKEN="${GITEA_TOKEN:-"$(cat "$GITEA_TOKEN_FILE")"}"
|
GITEA_TOKEN="${GITEA_TOKEN:-"$(cat "$GITEA_TOKEN_FILE")"}"
|
||||||
|
|
||||||
tea login add \
|
tea login add \
|
||||||
--token $GITEA_TOKEN \
|
--token "$GITEA_TOKEN" \
|
||||||
--url $GITEA_URL
|
--url "$GITEA_URL"
|
||||||
|
@ -5,8 +5,10 @@ set -euo pipefail
|
|||||||
export KEEP_VARS="GIT_AUTHOR_NAME GIT_AUTHOR_EMAIL GIT_COMMITTER_NAME GIT_COMMITTER_EMAIL GITEA_URL GITEA_USER PR_TITLE REMOTE_BRANCH REPO_DIR${KEEP_VARS:+ $KEEP_VARS}"
|
export KEEP_VARS="GIT_AUTHOR_NAME GIT_AUTHOR_EMAIL GIT_COMMITTER_NAME GIT_COMMITTER_EMAIL GITEA_URL GITEA_USER PR_TITLE REMOTE_BRANCH REPO_DIR${KEEP_VARS:+ $KEEP_VARS}"
|
||||||
|
|
||||||
# configure variables for actions
|
# configure variables for actions
|
||||||
export PR_TITLE="Automatic flake update - $(date --iso-8601=minutes)"
|
PR_TITLE="Automatic flake update - $(date --iso-8601=minutes)"
|
||||||
export REMOTE_BRANCH="flake-update-$(date --iso-8601)"
|
export PR_TITLE
|
||||||
|
REMOTE_BRANCH="flake-update-$(date --iso-8601)"
|
||||||
|
export REMOTE_BRANCH
|
||||||
export REPO_DIR=$TMPDIR/repo
|
export REPO_DIR=$TMPDIR/repo
|
||||||
export GIT_AUTHOR_NAME="Clan Merge Bot"
|
export GIT_AUTHOR_NAME="Clan Merge Bot"
|
||||||
export GIT_AUTHOR_EMAIL="clan-bot@git.clan.lol"
|
export GIT_AUTHOR_EMAIL="clan-bot@git.clan.lol"
|
||||||
|
@ -1,6 +1,8 @@
|
|||||||
#!/usr/bin/env nix-shell
|
#!/usr/bin/env nix-shell
|
||||||
#!nix-shell -i bash -p coreutils sops openssh
|
#!nix-shell -i bash -p coreutils sops openssh
|
||||||
|
|
||||||
|
# shellcheck disable=SC1008,SC1128
|
||||||
|
|
||||||
set -euox pipefail
|
set -euox pipefail
|
||||||
|
|
||||||
HOST="clan.lol"
|
HOST="clan.lol"
|
||||||
|
@ -1,6 +1,8 @@
|
|||||||
#!/usr/bin/env nix-shell
|
#!/usr/bin/env nix-shell
|
||||||
#!nix-shell -i bash -p nix jq bash rsync
|
#!nix-shell -i bash -p nix jq bash rsync
|
||||||
|
|
||||||
|
# shellcheck disable=SC1008,SC1128
|
||||||
|
|
||||||
set -euo pipefail
|
set -euo pipefail
|
||||||
|
|
||||||
clan machines update web01
|
clan machines update web01
|
||||||
|
@ -1,5 +1,7 @@
|
|||||||
#!/usr/bin/env nix-shell
|
#!/usr/bin/env nix-shell
|
||||||
#!nix-shell -i bash -p coreutils sops openssh nix
|
#!nix-shell -i bash -p coreutils sops openssh nix
|
||||||
|
|
||||||
|
# shellcheck disable=SC1008,SC1128
|
||||||
set -euox pipefail
|
set -euox pipefail
|
||||||
|
|
||||||
if [[ -z "${HOST:-}" ]]; then
|
if [[ -z "${HOST:-}" ]]; then
|
||||||
|
@ -1,5 +1,7 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
|
# shellcheck disable=SC1091
|
||||||
|
|
||||||
set -eu
|
set -eu
|
||||||
|
|
||||||
installNix() {
|
installNix() {
|
||||||
|
Loading…
Reference in New Issue
Block a user