mirror of
https://gitlab.sarex.io/infra/terraform-contour-mirror.git
synced 2026-10-17 13:41:36 +03:00
++ fix stale checkout skip, compare to GITHUB_SHA not just file presence
This commit is contained in:
parent
fcd6672ee2
commit
7f6940b8ba
@ -70,8 +70,8 @@ jobs:
|
||||
steps:
|
||||
- name: Checkout (without Node.js action)
|
||||
run: |
|
||||
if [ -f infrastructure.yaml ] && [ -d live ]; then
|
||||
echo "Workspace already contains repository files, skip checkout."
|
||||
if [ -f infrastructure.yaml ] && [ -d live ] && [ "$(git rev-parse HEAD 2>/dev/null)" = "${GITHUB_SHA}" ]; then
|
||||
echo "Workspace already at ${GITHUB_SHA}, skip checkout."
|
||||
exit 0
|
||||
fi
|
||||
|
||||
@ -139,8 +139,8 @@ jobs:
|
||||
steps:
|
||||
- name: Checkout (without Node.js action)
|
||||
run: |
|
||||
if [ -f infrastructure.yaml ] && [ -d live ]; then
|
||||
echo "Workspace already contains repository files, skip checkout."
|
||||
if [ -f infrastructure.yaml ] && [ -d live ] && [ "$(git rev-parse HEAD 2>/dev/null)" = "${GITHUB_SHA}" ]; then
|
||||
echo "Workspace already at ${GITHUB_SHA}, skip checkout."
|
||||
exit 0
|
||||
fi
|
||||
|
||||
@ -207,8 +207,8 @@ jobs:
|
||||
steps:
|
||||
- name: Checkout (without Node.js action)
|
||||
run: |
|
||||
if [ -f infrastructure.yaml ] && [ -d live ]; then
|
||||
echo "Workspace already contains repository files, skip checkout."
|
||||
if [ -f infrastructure.yaml ] && [ -d live ] && [ "$(git rev-parse HEAD 2>/dev/null)" = "${GITHUB_SHA}" ]; then
|
||||
echo "Workspace already at ${GITHUB_SHA}, skip checkout."
|
||||
exit 0
|
||||
fi
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user