Create github workflows dir if not present

Signed-off-by: Levi Harrison <git@leviharrison.dev>
This commit is contained in:
Levi Harrison 2021-09-11 14:08:07 -04:00
parent cad53e8901
commit 6c290d212d
No known key found for this signature in database
GPG key ID: 23A7BDEAE860B57D

View file

@ -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