From 1fd7904e00c7dd89e888757b263eaee6e2138c2b Mon Sep 17 00:00:00 2001 From: Hari Sekhon Date: Mon, 17 Feb 2020 21:02:57 +0000 Subject: [PATCH] updated sync_to_adjacent_repos.sh --- .github/workflows/sync_to_adjacent_repos.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/sync_to_adjacent_repos.sh b/.github/workflows/sync_to_adjacent_repos.sh index 17d87255..b5540f88 100755 --- a/.github/workflows/sync_to_adjacent_repos.sh +++ b/.github/workflows/sync_to_adjacent_repos.sh @@ -32,6 +32,9 @@ while read -r repo dir; do fi for filename in *.yaml; do target="../../../$dir/.github/workflows/$filename" + if [ -f "$target.disabled" ]; then + target="$target.disabled" + fi if [ -n "${ALL:-}" ] || grep -q '^[[:space:]]*container:' "$filename"; then if [ -n "${NEW:-}" ] || [ -f "$target" ]; then echo "syncing $filename -> $target"