fix: remove pipefail from sh shell
This commit is contained in:
parent
0d6f6ec2a0
commit
0e41c661b7
|
|
@ -13,11 +13,11 @@ jobs:
|
||||||
steps:
|
steps:
|
||||||
- name: Check out repository
|
- name: Check out repository
|
||||||
run: |
|
run: |
|
||||||
set -euo pipefail
|
set -e
|
||||||
git clone --depth 0 https://${{ secrets.GITEATOKEN }}@lab2025.duckdns.org/git/jv/my-homelab-configs.git .
|
git clone --depth 0 https://${{ secrets.GITEATOKEN }}@lab2025.duckdns.org/git/jv/my-homelab-configs.git .
|
||||||
- name: Validate repository
|
- name: Validate repository
|
||||||
run: |
|
run: |
|
||||||
set -euo pipefail
|
set -e
|
||||||
./jeannie validate
|
./jeannie validate
|
||||||
|
|
||||||
deploy:
|
deploy:
|
||||||
|
|
@ -29,11 +29,11 @@ jobs:
|
||||||
steps:
|
steps:
|
||||||
- name: Check out repository
|
- name: Check out repository
|
||||||
run: |
|
run: |
|
||||||
set -euo pipefail
|
set -e
|
||||||
git clone --depth 0 https://${{ secrets.GITEATOKEN }}@lab2025.duckdns.org/git/jv/my-homelab-configs.git .
|
git clone --depth 0 https://${{ secrets.GITEATOKEN }}@lab2025.duckdns.org/git/jv/my-homelab-configs.git .
|
||||||
- name: Block automatic deploy for external Gitea changes
|
- name: Block automatic deploy for external Gitea changes
|
||||||
run: |
|
run: |
|
||||||
set -euo pipefail
|
set -e
|
||||||
|
|
||||||
event_before="$(
|
event_before="$(
|
||||||
python3 -c 'import json, os; p = os.environ.get("GITHUB_EVENT_PATH", ""); print(json.load(open(p, encoding="utf-8")).get("before", "") if p and os.path.exists(p) else "")'
|
python3 -c 'import json, os; p = os.environ.get("GITHUB_EVENT_PATH", ""); print(json.load(open(p, encoding="utf-8")).get("before", "") if p and os.path.exists(p) else "")'
|
||||||
|
|
@ -131,7 +131,7 @@ jobs:
|
||||||
|
|
||||||
- name: Deploy main branch
|
- name: Deploy main branch
|
||||||
run: |
|
run: |
|
||||||
set -euo pipefail
|
set -e
|
||||||
|
|
||||||
workspace_dir="${PWD}"
|
workspace_dir="${PWD}"
|
||||||
deploy_dir="${HOMELAB_DEPLOY_DIR:-}"
|
deploy_dir="${HOMELAB_DEPLOY_DIR:-}"
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue