From 6c290d212d9d9dd9fd92a35822bb2292459e5706 Mon Sep 17 00:00:00 2001 From: Levi Harrison Date: Sat, 11 Sep 2021 14:08:07 -0400 Subject: [PATCH] Create github workflows dir if not present Signed-off-by: Levi Harrison --- scripts/sync_repo_files.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/scripts/sync_repo_files.sh b/scripts/sync_repo_files.sh index d6459a639..910d16faa 100755 --- a/scripts/sync_repo_files.sh +++ b/scripts/sync_repo_files.sh @@ -185,6 +185,9 @@ process_repo() { cd "${tmp_dir}/${org_repo}" || return 1 git checkout -b "${branch}" || return 1 + # If we need to add an Actions file this directory needs to be present. + mkdir -p "./.github/workflows" + # Update the files in target repo by one from prometheus/prometheus. for source_file in "${needs_update[@]}"; do case "${source_file}" in