From b44fd1ae33255355c40498ddc8982e09c694bc4c Mon Sep 17 00:00:00 2001 From: lm-ydubler <92544319+lm-ydubler@users.noreply.github.com> Date: Wed, 1 Dec 2021 12:36:07 -0700 Subject: [PATCH 001/109] Update index-update.yaml --- .github/workflows/index-update.yaml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.github/workflows/index-update.yaml b/.github/workflows/index-update.yaml index 5d2a6437..7aab8d92 100644 --- a/.github/workflows/index-update.yaml +++ b/.github/workflows/index-update.yaml @@ -136,6 +136,12 @@ jobs: echo "::group::Clone ${PACKS_ORG}/${repo_name}" gh repo clone "${PACKS_ORG}/${repo_name}" # !TODO: checkout the latest tag. + # TODO-1 START + echo ${PACKS_ORG}/${repo_name} :Checking out the latest tag + echo -e "latestTag=$(git describe --tags `git rev-list --tags --max-count=1`):\n`latestTag=$(git describe --tags `git rev-list --tags --max-count=1`)`" + echo latestTag=$latestTag + echo -e "git checkout $tag -b latestTagBranch:\n`git checkout $tag -b latestTagBranch`" + # TODO-1 END echo "::endgroup::" # !TODO: exclude packs without tags # !TODO: add index exclusion list to exclude utility packs like From 745f5a1150684722ad95ce32a46fa3c4fdf8adf1 Mon Sep 17 00:00:00 2001 From: lm-ydubler <92544319+lm-ydubler@users.noreply.github.com> Date: Wed, 1 Dec 2021 12:41:39 -0700 Subject: [PATCH 002/109] Update index-update.yaml --- .github/workflows/index-update.yaml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/index-update.yaml b/.github/workflows/index-update.yaml index 7aab8d92..2634e7cb 100644 --- a/.github/workflows/index-update.yaml +++ b/.github/workflows/index-update.yaml @@ -137,6 +137,9 @@ jobs: gh repo clone "${PACKS_ORG}/${repo_name}" # !TODO: checkout the latest tag. # TODO-1 START + echo "ls:\n`ls`" + cd ${repo_name} + echo "ls:\n`ls`" echo ${PACKS_ORG}/${repo_name} :Checking out the latest tag echo -e "latestTag=$(git describe --tags `git rev-list --tags --max-count=1`):\n`latestTag=$(git describe --tags `git rev-list --tags --max-count=1`)`" echo latestTag=$latestTag From 976b10e3d5ce0ddcdb921f4fc8d59294a9c52bc5 Mon Sep 17 00:00:00 2001 From: lm-ydubler <92544319+lm-ydubler@users.noreply.github.com> Date: Wed, 1 Dec 2021 12:50:15 -0700 Subject: [PATCH 003/109] Update index-update.yaml --- .github/workflows/index-update.yaml | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/.github/workflows/index-update.yaml b/.github/workflows/index-update.yaml index 2634e7cb..443ba276 100644 --- a/.github/workflows/index-update.yaml +++ b/.github/workflows/index-update.yaml @@ -137,13 +137,14 @@ jobs: gh repo clone "${PACKS_ORG}/${repo_name}" # !TODO: checkout the latest tag. # TODO-1 START - echo "ls:\n`ls`" - cd ${repo_name} - echo "ls:\n`ls`" - echo ${PACKS_ORG}/${repo_name} :Checking out the latest tag - echo -e "latestTag=$(git describe --tags `git rev-list --tags --max-count=1`):\n`latestTag=$(git describe --tags `git rev-list --tags --max-count=1`)`" + echo -e "\nls:\n`ls`\n" + echo -e "cd ${repo_name}:\n`cd ${repo_name}`\n" + echo -e "\nls:\n`ls`\n" + echo ${repo_name} : Checking out the latest tag + echo -e "latestTag=$(git describe --tags `git rev-list --tags --max-count=1`):\n`latestTag=$(git describe --tags `git rev-list --tags --max-count=1`)`\n" echo latestTag=$latestTag - echo -e "git checkout $tag -b latestTagBranch:\n`git checkout $tag -b latestTagBranch`" + if [ -z "$latestTag" ]; then echo -e "\nlatestTag = NULL\n"; else echo -e "\nlatestTag = NOT NULL\n"; fi + echo -e "git checkout $tag -b latestTagBranch:\n`git checkout $tag -b latestTagBranch`\n" # TODO-1 END echo "::endgroup::" # !TODO: exclude packs without tags From b082acf11cadc4883da2cafb442673ef5e82c850 Mon Sep 17 00:00:00 2001 From: lm-ydubler <92544319+lm-ydubler@users.noreply.github.com> Date: Wed, 1 Dec 2021 12:53:55 -0700 Subject: [PATCH 004/109] Update index-update.yaml --- .github/workflows/index-update.yaml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/index-update.yaml b/.github/workflows/index-update.yaml index 443ba276..5f8f382f 100644 --- a/.github/workflows/index-update.yaml +++ b/.github/workflows/index-update.yaml @@ -138,7 +138,8 @@ jobs: # !TODO: checkout the latest tag. # TODO-1 START echo -e "\nls:\n`ls`\n" - echo -e "cd ${repo_name}:\n`cd ${repo_name}`\n" + echo -e "cd ${repo_name}:\n" + cd ${repo_name} echo -e "\nls:\n`ls`\n" echo ${repo_name} : Checking out the latest tag echo -e "latestTag=$(git describe --tags `git rev-list --tags --max-count=1`):\n`latestTag=$(git describe --tags `git rev-list --tags --max-count=1`)`\n" From acc055cf5edac0ae3fed897feabb273c776c3301 Mon Sep 17 00:00:00 2001 From: lm-ydubler <92544319+lm-ydubler@users.noreply.github.com> Date: Wed, 1 Dec 2021 13:00:30 -0700 Subject: [PATCH 005/109] Update index-update.yaml --- .github/workflows/index-update.yaml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/index-update.yaml b/.github/workflows/index-update.yaml index 5f8f382f..0b17c900 100644 --- a/.github/workflows/index-update.yaml +++ b/.github/workflows/index-update.yaml @@ -142,8 +142,9 @@ jobs: cd ${repo_name} echo -e "\nls:\n`ls`\n" echo ${repo_name} : Checking out the latest tag - echo -e "latestTag=$(git describe --tags `git rev-list --tags --max-count=1`):\n`latestTag=$(git describe --tags `git rev-list --tags --max-count=1`)`\n" - echo latestTag=$latestTag + echo -e "latestTag=$(git describe --tags `git rev-list --tags --max-count=1`):\n" + latestTag=$(git describe --tags `git rev-list --tags --max-count=1`) + echo "latestTag = `$latestTag`" if [ -z "$latestTag" ]; then echo -e "\nlatestTag = NULL\n"; else echo -e "\nlatestTag = NOT NULL\n"; fi echo -e "git checkout $tag -b latestTagBranch:\n`git checkout $tag -b latestTagBranch`\n" # TODO-1 END From 1d26ac3dff50297ac2f2a99583988fb6375a5e33 Mon Sep 17 00:00:00 2001 From: lm-ydubler <92544319+lm-ydubler@users.noreply.github.com> Date: Wed, 1 Dec 2021 13:04:07 -0700 Subject: [PATCH 006/109] Update index-update.yaml --- .github/workflows/index-update.yaml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/index-update.yaml b/.github/workflows/index-update.yaml index 0b17c900..bf499584 100644 --- a/.github/workflows/index-update.yaml +++ b/.github/workflows/index-update.yaml @@ -144,9 +144,10 @@ jobs: echo ${repo_name} : Checking out the latest tag echo -e "latestTag=$(git describe --tags `git rev-list --tags --max-count=1`):\n" latestTag=$(git describe --tags `git rev-list --tags --max-count=1`) - echo "latestTag = `$latestTag`" + echo latestTag = $latestTag if [ -z "$latestTag" ]; then echo -e "\nlatestTag = NULL\n"; else echo -e "\nlatestTag = NOT NULL\n"; fi - echo -e "git checkout $tag -b latestTagBranch:\n`git checkout $tag -b latestTagBranch`\n" + echo -e "git checkout $tag -b latestTagBranch:\n" + git checkout $tag -b latestTagBranch # TODO-1 END echo "::endgroup::" # !TODO: exclude packs without tags From efc2884363a0a1b019e660d23067508c49959a33 Mon Sep 17 00:00:00 2001 From: lm-ydubler <92544319+lm-ydubler@users.noreply.github.com> Date: Wed, 1 Dec 2021 13:04:42 -0700 Subject: [PATCH 007/109] Update index-update.yaml --- .github/workflows/index-update.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/index-update.yaml b/.github/workflows/index-update.yaml index bf499584..eaa42ad0 100644 --- a/.github/workflows/index-update.yaml +++ b/.github/workflows/index-update.yaml @@ -147,7 +147,7 @@ jobs: echo latestTag = $latestTag if [ -z "$latestTag" ]; then echo -e "\nlatestTag = NULL\n"; else echo -e "\nlatestTag = NOT NULL\n"; fi echo -e "git checkout $tag -b latestTagBranch:\n" - git checkout $tag -b latestTagBranch + git checkout $latestTag -b latestTagBranch # TODO-1 END echo "::endgroup::" # !TODO: exclude packs without tags From 074bac20316b21f2390cf3bb9e3ec149a3044e7f Mon Sep 17 00:00:00 2001 From: lm-ydubler <92544319+lm-ydubler@users.noreply.github.com> Date: Wed, 1 Dec 2021 13:05:47 -0700 Subject: [PATCH 008/109] Update index-update.yaml --- .github/workflows/index-update.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/index-update.yaml b/.github/workflows/index-update.yaml index eaa42ad0..61f88fe5 100644 --- a/.github/workflows/index-update.yaml +++ b/.github/workflows/index-update.yaml @@ -146,7 +146,7 @@ jobs: latestTag=$(git describe --tags `git rev-list --tags --max-count=1`) echo latestTag = $latestTag if [ -z "$latestTag" ]; then echo -e "\nlatestTag = NULL\n"; else echo -e "\nlatestTag = NOT NULL\n"; fi - echo -e "git checkout $tag -b latestTagBranch:\n" + echo -e "git checkout $latestTag -b latestTagBranch:\n" git checkout $latestTag -b latestTagBranch # TODO-1 END echo "::endgroup::" From 68d3b3ea1f435b8acfa5602ff2d5f1f8af9524b2 Mon Sep 17 00:00:00 2001 From: lm-ydubler <92544319+lm-ydubler@users.noreply.github.com> Date: Wed, 1 Dec 2021 13:14:39 -0700 Subject: [PATCH 009/109] Update index-update.yaml --- .github/workflows/index-update.yaml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/workflows/index-update.yaml b/.github/workflows/index-update.yaml index 61f88fe5..12c4b62b 100644 --- a/.github/workflows/index-update.yaml +++ b/.github/workflows/index-update.yaml @@ -145,9 +145,13 @@ jobs: echo -e "latestTag=$(git describe --tags `git rev-list --tags --max-count=1`):\n" latestTag=$(git describe --tags `git rev-list --tags --max-count=1`) echo latestTag = $latestTag - if [ -z "$latestTag" ]; then echo -e "\nlatestTag = NULL\n"; else echo -e "\nlatestTag = NOT NULL\n"; fi + if [ -z "$latestTag" ]; then + echo -e "\nlatestTag = NULL\n"; + else + echo -e "\nlatestTag = NOT NULL\n"; echo -e "git checkout $latestTag -b latestTagBranch:\n" git checkout $latestTag -b latestTagBranch + fi # TODO-1 END echo "::endgroup::" # !TODO: exclude packs without tags From e3f9a54e0aa801f27ca8c858a86833474c46f4a4 Mon Sep 17 00:00:00 2001 From: lm-ydubler <92544319+lm-ydubler@users.noreply.github.com> Date: Wed, 1 Dec 2021 13:23:30 -0700 Subject: [PATCH 010/109] Update index-update.yaml --- .github/workflows/index-update.yaml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/index-update.yaml b/.github/workflows/index-update.yaml index 12c4b62b..9b27790a 100644 --- a/.github/workflows/index-update.yaml +++ b/.github/workflows/index-update.yaml @@ -141,8 +141,9 @@ jobs: echo -e "cd ${repo_name}:\n" cd ${repo_name} echo -e "\nls:\n`ls`\n" + echo -e "\ngit fetch -t\n" + git fetch -t echo ${repo_name} : Checking out the latest tag - echo -e "latestTag=$(git describe --tags `git rev-list --tags --max-count=1`):\n" latestTag=$(git describe --tags `git rev-list --tags --max-count=1`) echo latestTag = $latestTag if [ -z "$latestTag" ]; then From 60b38f30aad57535eaa38d201c1a8d5cd1a5180c Mon Sep 17 00:00:00 2001 From: lm-ydubler <92544319+lm-ydubler@users.noreply.github.com> Date: Wed, 1 Dec 2021 13:31:19 -0700 Subject: [PATCH 011/109] Update index-update.yaml --- .github/workflows/index-update.yaml | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/.github/workflows/index-update.yaml b/.github/workflows/index-update.yaml index 9b27790a..39f90838 100644 --- a/.github/workflows/index-update.yaml +++ b/.github/workflows/index-update.yaml @@ -137,9 +137,13 @@ jobs: gh repo clone "${PACKS_ORG}/${repo_name}" # !TODO: checkout the latest tag. # TODO-1 START + echo -e "\npwd:\n" + pwd echo -e "\nls:\n`ls`\n" echo -e "cd ${repo_name}:\n" cd ${repo_name} + echo -e "\npwd:\n" + pwd echo -e "\nls:\n`ls`\n" echo -e "\ngit fetch -t\n" git fetch -t @@ -163,6 +167,13 @@ jobs: echo "DELETED clone of ${PACKS_ORG}/${repo_name}: missing pack.yaml" echo "${PACKS_ORG}/${repo_name}" >> ${GITHUB_WORKSPACE}/bad_pack_repos fi + echo -e "\npwd:\n" + pwd + echo -e "\ncd..\n" + cd .. + echo -e "\npwd:\n" + pwd + echo -e "\nls:\n`ls`\n" done # validate.py hard codes the pack repo prefix From 4ac2530acda679d01bdde1b8a5c6ec5fcf426b31 Mon Sep 17 00:00:00 2001 From: lm-ydubler <92544319+lm-ydubler@users.noreply.github.com> Date: Wed, 1 Dec 2021 13:45:49 -0700 Subject: [PATCH 012/109] Update index-update.yaml --- .github/workflows/index-update.yaml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/.github/workflows/index-update.yaml b/.github/workflows/index-update.yaml index 39f90838..35ae461f 100644 --- a/.github/workflows/index-update.yaml +++ b/.github/workflows/index-update.yaml @@ -148,7 +148,12 @@ jobs: echo -e "\ngit fetch -t\n" git fetch -t echo ${repo_name} : Checking out the latest tag - latestTag=$(git describe --tags `git rev-list --tags --max-count=1`) + # latestTag=$(git describe --tags `git rev-list --tags --max-count=1`) + if latestTag=$(git describe --tags `git rev-list --tags --max-count=1`); then + echo -e "COMMAND SUCCEDED : TAGS EXIST\n" + else + echo -e "COMMAND FAILED : TAGS DO NOT EXIST\n" + fi echo latestTag = $latestTag if [ -z "$latestTag" ]; then echo -e "\nlatestTag = NULL\n"; From f09aa443e58257257af3a0692de847a9cf5b07be Mon Sep 17 00:00:00 2001 From: lm-ydubler <92544319+lm-ydubler@users.noreply.github.com> Date: Wed, 1 Dec 2021 13:56:42 -0700 Subject: [PATCH 013/109] Update index-update.yaml --- .github/workflows/index-update.yaml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/index-update.yaml b/.github/workflows/index-update.yaml index 35ae461f..b524c256 100644 --- a/.github/workflows/index-update.yaml +++ b/.github/workflows/index-update.yaml @@ -168,10 +168,11 @@ jobs: # !TODO: add index exclusion list to exclude utility packs like # test, test_content_version if ! [ -f "${repo_name}/pack.yaml" ] ; then + cd .. rm -rf ${repo_name} echo "DELETED clone of ${PACKS_ORG}/${repo_name}: missing pack.yaml" echo "${PACKS_ORG}/${repo_name}" >> ${GITHUB_WORKSPACE}/bad_pack_repos - fi + else echo -e "\npwd:\n" pwd echo -e "\ncd..\n" @@ -179,6 +180,7 @@ jobs: echo -e "\npwd:\n" pwd echo -e "\nls:\n`ls`\n" + fi done # validate.py hard codes the pack repo prefix From 501ede2d5120696eaf3216b9d989c0717f61eb17 Mon Sep 17 00:00:00 2001 From: lm-ydubler <92544319+lm-ydubler@users.noreply.github.com> Date: Wed, 1 Dec 2021 14:00:02 -0700 Subject: [PATCH 014/109] Update index-update.yaml --- .github/workflows/index-update.yaml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/index-update.yaml b/.github/workflows/index-update.yaml index b524c256..31abb7d8 100644 --- a/.github/workflows/index-update.yaml +++ b/.github/workflows/index-update.yaml @@ -167,7 +167,8 @@ jobs: # !TODO: exclude packs without tags # !TODO: add index exclusion list to exclude utility packs like # test, test_content_version - if ! [ -f "${repo_name}/pack.yaml" ] ; then + # if ! [ -f "${repo_name}/pack.yaml" ] ; then + if ! [ -f "./pack.yaml" ] ; then cd .. rm -rf ${repo_name} echo "DELETED clone of ${PACKS_ORG}/${repo_name}: missing pack.yaml" From 63f09a53a2e9211ed44e6e2d502eedb0f0e1d64c Mon Sep 17 00:00:00 2001 From: lm-ydubler <92544319+lm-ydubler@users.noreply.github.com> Date: Wed, 1 Dec 2021 14:13:23 -0700 Subject: [PATCH 015/109] Update index-update.yaml --- .github/workflows/index-update.yaml | 96 ++++++++++++++--------------- 1 file changed, 47 insertions(+), 49 deletions(-) diff --git a/.github/workflows/index-update.yaml b/.github/workflows/index-update.yaml index 31abb7d8..03883178 100644 --- a/.github/workflows/index-update.yaml +++ b/.github/workflows/index-update.yaml @@ -133,55 +133,53 @@ jobs: cd ${PACKS_PATH} source ${TOOLS_DIR}/functions.sh for repo_name in $(_gh_list_repo_names ${PACKS_ORG} ${PACKS_PREFIX}); do - echo "::group::Clone ${PACKS_ORG}/${repo_name}" - gh repo clone "${PACKS_ORG}/${repo_name}" - # !TODO: checkout the latest tag. - # TODO-1 START - echo -e "\npwd:\n" - pwd - echo -e "\nls:\n`ls`\n" - echo -e "cd ${repo_name}:\n" - cd ${repo_name} - echo -e "\npwd:\n" - pwd - echo -e "\nls:\n`ls`\n" - echo -e "\ngit fetch -t\n" - git fetch -t - echo ${repo_name} : Checking out the latest tag - # latestTag=$(git describe --tags `git rev-list --tags --max-count=1`) - if latestTag=$(git describe --tags `git rev-list --tags --max-count=1`); then - echo -e "COMMAND SUCCEDED : TAGS EXIST\n" - else - echo -e "COMMAND FAILED : TAGS DO NOT EXIST\n" - fi - echo latestTag = $latestTag - if [ -z "$latestTag" ]; then - echo -e "\nlatestTag = NULL\n"; - else - echo -e "\nlatestTag = NOT NULL\n"; - echo -e "git checkout $latestTag -b latestTagBranch:\n" - git checkout $latestTag -b latestTagBranch - fi - # TODO-1 END - echo "::endgroup::" - # !TODO: exclude packs without tags - # !TODO: add index exclusion list to exclude utility packs like - # test, test_content_version - # if ! [ -f "${repo_name}/pack.yaml" ] ; then - if ! [ -f "./pack.yaml" ] ; then - cd .. - rm -rf ${repo_name} - echo "DELETED clone of ${PACKS_ORG}/${repo_name}: missing pack.yaml" - echo "${PACKS_ORG}/${repo_name}" >> ${GITHUB_WORKSPACE}/bad_pack_repos - else - echo -e "\npwd:\n" - pwd - echo -e "\ncd..\n" - cd .. - echo -e "\npwd:\n" - pwd - echo -e "\nls:\n`ls`\n" - fi + echo "::group::Clone ${PACKS_ORG}/${repo_name}" + gh repo clone "${PACKS_ORG}/${repo_name}" + # !TODO: checkout the latest tag. + # TODO-1 START + echo -e "\npwd:\n" #DEBUG + pwd #DEBUG + echo -e "\nls:\n`ls`\n" #DEBUG + echo -e "cd ${repo_name}:\n" #DEBUG + cd ${repo_name} + echo -e "\npwd:\n" #DEBUG + pwd #DEBUG + echo -e "\nls:\n`ls`\n" #DEBUG + echo ${repo_name} : Checking out the latest tag #DEBUG + # latestTag=$(git describe --tags `git rev-list --tags --max-count=1`) #TEMP SAVE OF LINE + if latestTag=$(git describe --tags `git rev-list --tags --max-count=1`); then + echo -e "TAGS EXIST! -> Continuing process ..." + else + echo -e "TAGS DO NOT EXIST -> Skipping repository." + fi + echo latestTag = $latestTag #DEBUG + if [ -z "$latestTag" ]; then + echo -e "latestTag=NULL -> Skipping repository."; + else + echo -e "latestTag = NOT NULL -> Continuing process ..."; + echo -e "git checkout $latestTag -b latestTagBranch:\n" #DEBUG + git checkout $latestTag -b latestTagBranch + fi + # TODO-1 END + echo "::endgroup::" + # !TODO: exclude packs without tags + # !TODO: add index exclusion list to exclude utility packs like + # test, test_content_version + # if ! [ -f "${repo_name}/pack.yaml" ] ; then + if ! [ -f "./pack.yaml" ] ; then + cd .. + rm -rf ${repo_name} + echo "DELETED clone of ${PACKS_ORG}/${repo_name}: missing pack.yaml" + echo "${PACKS_ORG}/${repo_name}" >> ${GITHUB_WORKSPACE}/bad_pack_repos + else + echo -e "\npwd:\n" #DEBUG + pwd + echo -e "\ncd..\n" #DEBUG + cd .. + echo -e "\npwd:\n" #DEBUG + pwd + echo -e "\nls:\n`ls`\n" #DEBUG + fi done # validate.py hard codes the pack repo prefix From 3c3a1e29a6a1f76ef5596ad60eeae89c2635cac6 Mon Sep 17 00:00:00 2001 From: lm-ydubler <92544319+lm-ydubler@users.noreply.github.com> Date: Wed, 1 Dec 2021 14:24:18 -0700 Subject: [PATCH 016/109] Update index-update.yaml --- .github/workflows/index-update.yaml | 21 ++++++++++++--------- 1 file changed, 12 insertions(+), 9 deletions(-) diff --git a/.github/workflows/index-update.yaml b/.github/workflows/index-update.yaml index 03883178..9c6bad4b 100644 --- a/.github/workflows/index-update.yaml +++ b/.github/workflows/index-update.yaml @@ -137,22 +137,25 @@ jobs: gh repo clone "${PACKS_ORG}/${repo_name}" # !TODO: checkout the latest tag. # TODO-1 START - echo -e "\npwd:\n" #DEBUG - pwd #DEBUG - echo -e "\nls:\n`ls`\n" #DEBUG - echo -e "cd ${repo_name}:\n" #DEBUG + echo "pwd:`pwd`" #DEBUG + echo -e "ls:\n`ls`" #DEBUG + echo "cd ${repo_name}:" #DEBUG cd ${repo_name} - echo -e "\npwd:\n" #DEBUG - pwd #DEBUG - echo -e "\nls:\n`ls`\n" #DEBUG - echo ${repo_name} : Checking out the latest tag #DEBUG + echo "pwd:`pwd`" #DEBUG + echo -e "ls:\n`ls`\n" #DEBUG + echo "Retrieving the latest GIT Tag ..." #DEBUG # latestTag=$(git describe --tags `git rev-list --tags --max-count=1`) #TEMP SAVE OF LINE if latestTag=$(git describe --tags `git rev-list --tags --max-count=1`); then echo -e "TAGS EXIST! -> Continuing process ..." + echo latestTag = $latestTag #DEBUG else echo -e "TAGS DO NOT EXIST -> Skipping repository." + cd .. + rm -rf ${repo_name} + echo "DELETED clone of ${PACKS_ORG}/${repo_name}: missing pack.yaml" + echo "${PACKS_ORG}/${repo_name}" >> ${GITHUB_WORKSPACE}/bad_pack_repos + done fi - echo latestTag = $latestTag #DEBUG if [ -z "$latestTag" ]; then echo -e "latestTag=NULL -> Skipping repository."; else From fb22e3104653d2ca2156392dcc95fbf0f11afd6e Mon Sep 17 00:00:00 2001 From: lm-ydubler <92544319+lm-ydubler@users.noreply.github.com> Date: Wed, 1 Dec 2021 14:27:35 -0700 Subject: [PATCH 017/109] Update index-update.yaml --- .github/workflows/index-update.yaml | 13 ++++--------- 1 file changed, 4 insertions(+), 9 deletions(-) diff --git a/.github/workflows/index-update.yaml b/.github/workflows/index-update.yaml index 9c6bad4b..6717eff7 100644 --- a/.github/workflows/index-update.yaml +++ b/.github/workflows/index-update.yaml @@ -146,20 +146,15 @@ jobs: echo "Retrieving the latest GIT Tag ..." #DEBUG # latestTag=$(git describe --tags `git rev-list --tags --max-count=1`) #TEMP SAVE OF LINE if latestTag=$(git describe --tags `git rev-list --tags --max-count=1`); then - echo -e "TAGS EXIST! -> Continuing process ..." + echo -e "TAGS EXIST! -> Continuing process ..." #DEBUG echo latestTag = $latestTag #DEBUG else - echo -e "TAGS DO NOT EXIST -> Skipping repository." - cd .. - rm -rf ${repo_name} - echo "DELETED clone of ${PACKS_ORG}/${repo_name}: missing pack.yaml" - echo "${PACKS_ORG}/${repo_name}" >> ${GITHUB_WORKSPACE}/bad_pack_repos - done + echo -e "TAGS DO NOT EXIST -> Skipping repository." #DEBUG fi if [ -z "$latestTag" ]; then - echo -e "latestTag=NULL -> Skipping repository."; + echo -e "latestTag=NULL -> Skipping repository."; #DEBUG else - echo -e "latestTag = NOT NULL -> Continuing process ..."; + echo -e "latestTag = NOT NULL -> Continuing process ..."; #DEBUG echo -e "git checkout $latestTag -b latestTagBranch:\n" #DEBUG git checkout $latestTag -b latestTagBranch fi From 5c5888603c97549130aeb655d06799ecb5f33875 Mon Sep 17 00:00:00 2001 From: lm-ydubler <92544319+lm-ydubler@users.noreply.github.com> Date: Wed, 1 Dec 2021 14:38:24 -0700 Subject: [PATCH 018/109] Update index-update.yaml --- .github/workflows/index-update.yaml | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/.github/workflows/index-update.yaml b/.github/workflows/index-update.yaml index 6717eff7..6de25e28 100644 --- a/.github/workflows/index-update.yaml +++ b/.github/workflows/index-update.yaml @@ -145,12 +145,18 @@ jobs: echo -e "ls:\n`ls`\n" #DEBUG echo "Retrieving the latest GIT Tag ..." #DEBUG # latestTag=$(git describe --tags `git rev-list --tags --max-count=1`) #TEMP SAVE OF LINE + ##################### + # CHECK IF TAGS EXIST + ##################### if latestTag=$(git describe --tags `git rev-list --tags --max-count=1`); then echo -e "TAGS EXIST! -> Continuing process ..." #DEBUG echo latestTag = $latestTag #DEBUG else echo -e "TAGS DO NOT EXIST -> Skipping repository." #DEBUG fi + ################################# + # CHECK IF LATEST TAG IS NOT NULL + ################################# if [ -z "$latestTag" ]; then echo -e "latestTag=NULL -> Skipping repository."; #DEBUG else @@ -164,6 +170,9 @@ jobs: # !TODO: add index exclusion list to exclude utility packs like # test, test_content_version # if ! [ -f "${repo_name}/pack.yaml" ] ; then + #################################### + # CHECK IF PACK HAS A PACK.YAML FILE + #################################### if ! [ -f "./pack.yaml" ] ; then cd .. rm -rf ${repo_name} From efcdef49931a654bcb31a102508c40aa945c4c80 Mon Sep 17 00:00:00 2001 From: lm-ydubler <92544319+lm-ydubler@users.noreply.github.com> Date: Wed, 1 Dec 2021 14:53:02 -0700 Subject: [PATCH 019/109] Update index-update.yaml --- .github/workflows/index-update.yaml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/index-update.yaml b/.github/workflows/index-update.yaml index 6de25e28..782e3806 100644 --- a/.github/workflows/index-update.yaml +++ b/.github/workflows/index-update.yaml @@ -132,6 +132,9 @@ jobs: mkdir -p ${PACKS_PATH} cd ${PACKS_PATH} source ${TOOLS_DIR}/functions.sh + ##################### + # LOOP THROUGH ALL PACKS + ##################### for repo_name in $(_gh_list_repo_names ${PACKS_ORG} ${PACKS_PREFIX}); do echo "::group::Clone ${PACKS_ORG}/${repo_name}" gh repo clone "${PACKS_ORG}/${repo_name}" From a9590c9e4a4c3d7ea668c3cb4868f84217f17ab0 Mon Sep 17 00:00:00 2001 From: lm-ydubler <92544319+lm-ydubler@users.noreply.github.com> Date: Wed, 1 Dec 2021 14:53:28 -0700 Subject: [PATCH 020/109] Update index-update.yaml --- .github/workflows/index-update.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/index-update.yaml b/.github/workflows/index-update.yaml index 782e3806..efd17d63 100644 --- a/.github/workflows/index-update.yaml +++ b/.github/workflows/index-update.yaml @@ -132,9 +132,9 @@ jobs: mkdir -p ${PACKS_PATH} cd ${PACKS_PATH} source ${TOOLS_DIR}/functions.sh - ##################### + ######################## # LOOP THROUGH ALL PACKS - ##################### + ######################## for repo_name in $(_gh_list_repo_names ${PACKS_ORG} ${PACKS_PREFIX}); do echo "::group::Clone ${PACKS_ORG}/${repo_name}" gh repo clone "${PACKS_ORG}/${repo_name}" From 2e9d3d7cd3ff4405e8f32aaf06aed0242d433a55 Mon Sep 17 00:00:00 2001 From: lm-ydubler <92544319+lm-ydubler@users.noreply.github.com> Date: Wed, 1 Dec 2021 14:55:41 -0700 Subject: [PATCH 021/109] Update index-update.yaml --- .github/workflows/index-update.yaml | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/.github/workflows/index-update.yaml b/.github/workflows/index-update.yaml index efd17d63..b6909195 100644 --- a/.github/workflows/index-update.yaml +++ b/.github/workflows/index-update.yaml @@ -148,9 +148,9 @@ jobs: echo -e "ls:\n`ls`\n" #DEBUG echo "Retrieving the latest GIT Tag ..." #DEBUG # latestTag=$(git describe --tags `git rev-list --tags --max-count=1`) #TEMP SAVE OF LINE - ##################### - # CHECK IF TAGS EXIST - ##################### + ############################################################################ + # MAKE SURE TAGS EXIST - NO TAGS RESULT IN AN ERROR THAT WILL BREAK WORFKLOW + ############################################################################ if latestTag=$(git describe --tags `git rev-list --tags --max-count=1`); then echo -e "TAGS EXIST! -> Continuing process ..." #DEBUG echo latestTag = $latestTag #DEBUG @@ -160,12 +160,12 @@ jobs: ################################# # CHECK IF LATEST TAG IS NOT NULL ################################# - if [ -z "$latestTag" ]; then - echo -e "latestTag=NULL -> Skipping repository."; #DEBUG - else + if ! [ -z "$latestTag" ]; then echo -e "latestTag = NOT NULL -> Continuing process ..."; #DEBUG echo -e "git checkout $latestTag -b latestTagBranch:\n" #DEBUG git checkout $latestTag -b latestTagBranch + else + echo -e "latestTag=NULL -> Skipping repository."; #DEBUG fi # TODO-1 END echo "::endgroup::" From 609f22e12560d0db981ef6e2cc1748a5da200c99 Mon Sep 17 00:00:00 2001 From: lm-ydubler <92544319+lm-ydubler@users.noreply.github.com> Date: Wed, 1 Dec 2021 14:56:16 -0700 Subject: [PATCH 022/109] Update index-update.yaml --- .github/workflows/index-update.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/index-update.yaml b/.github/workflows/index-update.yaml index b6909195..ca8faef2 100644 --- a/.github/workflows/index-update.yaml +++ b/.github/workflows/index-update.yaml @@ -162,7 +162,7 @@ jobs: ################################# if ! [ -z "$latestTag" ]; then echo -e "latestTag = NOT NULL -> Continuing process ..."; #DEBUG - echo -e "git checkout $latestTag -b latestTagBranch:\n" #DEBUG + echo -e "git checkout $latestTag -b latestTagBranch:" #DEBUG git checkout $latestTag -b latestTagBranch else echo -e "latestTag=NULL -> Skipping repository."; #DEBUG From e884893b243522715f603a9c8c519dfab61aa806 Mon Sep 17 00:00:00 2001 From: lm-ydubler <92544319+lm-ydubler@users.noreply.github.com> Date: Wed, 1 Dec 2021 14:59:35 -0700 Subject: [PATCH 023/109] Update index-update.yaml --- .github/workflows/index-update.yaml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/index-update.yaml b/.github/workflows/index-update.yaml index ca8faef2..21b9830f 100644 --- a/.github/workflows/index-update.yaml +++ b/.github/workflows/index-update.yaml @@ -149,7 +149,8 @@ jobs: echo "Retrieving the latest GIT Tag ..." #DEBUG # latestTag=$(git describe --tags `git rev-list --tags --max-count=1`) #TEMP SAVE OF LINE ############################################################################ - # MAKE SURE TAGS EXIST - NO TAGS RESULT IN AN ERROR THAT WILL BREAK WORFKLOW + # MAKE SURE TAGS EXIST - THIS IF STATEMENT CATCHES/FIXES AN ERROR THAT WILL + # BREAK THE WORKFLOW IF "TAGS DO NOT EXIST" ############################################################################ if latestTag=$(git describe --tags `git rev-list --tags --max-count=1`); then echo -e "TAGS EXIST! -> Continuing process ..." #DEBUG From 9b0fff3a519a36c8c96736c6a07cb131c2506bb0 Mon Sep 17 00:00:00 2001 From: lm-ydubler <92544319+lm-ydubler@users.noreply.github.com> Date: Wed, 1 Dec 2021 15:02:23 -0700 Subject: [PATCH 024/109] Update index-update.yaml --- .github/workflows/index-update.yaml | 3 --- 1 file changed, 3 deletions(-) diff --git a/.github/workflows/index-update.yaml b/.github/workflows/index-update.yaml index 21b9830f..8fc7d6bb 100644 --- a/.github/workflows/index-update.yaml +++ b/.github/workflows/index-update.yaml @@ -139,7 +139,6 @@ jobs: echo "::group::Clone ${PACKS_ORG}/${repo_name}" gh repo clone "${PACKS_ORG}/${repo_name}" # !TODO: checkout the latest tag. - # TODO-1 START echo "pwd:`pwd`" #DEBUG echo -e "ls:\n`ls`" #DEBUG echo "cd ${repo_name}:" #DEBUG @@ -147,7 +146,6 @@ jobs: echo "pwd:`pwd`" #DEBUG echo -e "ls:\n`ls`\n" #DEBUG echo "Retrieving the latest GIT Tag ..." #DEBUG - # latestTag=$(git describe --tags `git rev-list --tags --max-count=1`) #TEMP SAVE OF LINE ############################################################################ # MAKE SURE TAGS EXIST - THIS IF STATEMENT CATCHES/FIXES AN ERROR THAT WILL # BREAK THE WORKFLOW IF "TAGS DO NOT EXIST" @@ -168,7 +166,6 @@ jobs: else echo -e "latestTag=NULL -> Skipping repository."; #DEBUG fi - # TODO-1 END echo "::endgroup::" # !TODO: exclude packs without tags # !TODO: add index exclusion list to exclude utility packs like From 668be9dd4bc24fa10c54edd343ce673d250ee6f1 Mon Sep 17 00:00:00 2001 From: lm-ydubler <92544319+lm-ydubler@users.noreply.github.com> Date: Wed, 1 Dec 2021 15:04:51 -0700 Subject: [PATCH 025/109] Update index-update.yaml --- .github/workflows/index-update.yaml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/index-update.yaml b/.github/workflows/index-update.yaml index 8fc7d6bb..8e80d482 100644 --- a/.github/workflows/index-update.yaml +++ b/.github/workflows/index-update.yaml @@ -139,11 +139,11 @@ jobs: echo "::group::Clone ${PACKS_ORG}/${repo_name}" gh repo clone "${PACKS_ORG}/${repo_name}" # !TODO: checkout the latest tag. - echo "pwd:`pwd`" #DEBUG - echo -e "ls:\n`ls`" #DEBUG + echo "pwd:`pwd`\n" #DEBUG + echo -e "ls:\n`ls`\n" #DEBUG echo "cd ${repo_name}:" #DEBUG cd ${repo_name} - echo "pwd:`pwd`" #DEBUG + echo "pwd:`pwd`\n" #DEBUG echo -e "ls:\n`ls`\n" #DEBUG echo "Retrieving the latest GIT Tag ..." #DEBUG ############################################################################ From 8041ddf02fc7788352afba2939d464a4b2b1ae0c Mon Sep 17 00:00:00 2001 From: lm-ydubler <92544319+lm-ydubler@users.noreply.github.com> Date: Thu, 2 Dec 2021 09:39:34 -0700 Subject: [PATCH 026/109] Update index-update.yaml --- .github/workflows/index-update.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/index-update.yaml b/.github/workflows/index-update.yaml index 8e80d482..67864d18 100644 --- a/.github/workflows/index-update.yaml +++ b/.github/workflows/index-update.yaml @@ -174,7 +174,7 @@ jobs: #################################### # CHECK IF PACK HAS A PACK.YAML FILE #################################### - if ! [ -f "./pack.yaml" ] ; then + if ![ -f "./pack.yaml"] || ["${repo_name}"==["test"||"test_content_version"]] ; then cd .. rm -rf ${repo_name} echo "DELETED clone of ${PACKS_ORG}/${repo_name}: missing pack.yaml" From 2afd9b2079880c4a0dce0116bbd5953c30141411 Mon Sep 17 00:00:00 2001 From: lm-ydubler <92544319+lm-ydubler@users.noreply.github.com> Date: Thu, 2 Dec 2021 09:43:55 -0700 Subject: [PATCH 027/109] Update index-update.yaml --- .github/workflows/index-update.yaml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/index-update.yaml b/.github/workflows/index-update.yaml index 67864d18..caa884e1 100644 --- a/.github/workflows/index-update.yaml +++ b/.github/workflows/index-update.yaml @@ -174,7 +174,8 @@ jobs: #################################### # CHECK IF PACK HAS A PACK.YAML FILE #################################### - if ![ -f "./pack.yaml"] || ["${repo_name}"==["test"||"test_content_version"]] ; then + #if ! [ -f "./pack.yaml"] || ["${repo_name}"==["test"||"test_content_version"]] ; then + if ! [ -f "./pack.yaml"] ; then cd .. rm -rf ${repo_name} echo "DELETED clone of ${PACKS_ORG}/${repo_name}: missing pack.yaml" From ccf61ce5e81672272567a213d530aea17aea3145 Mon Sep 17 00:00:00 2001 From: lm-ydubler <92544319+lm-ydubler@users.noreply.github.com> Date: Fri, 3 Dec 2021 09:39:44 -0700 Subject: [PATCH 028/109] Update index-update.yaml --- .github/workflows/index-update.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/index-update.yaml b/.github/workflows/index-update.yaml index caa884e1..02e2e2e7 100644 --- a/.github/workflows/index-update.yaml +++ b/.github/workflows/index-update.yaml @@ -36,7 +36,7 @@ on: apt-cache-version: required: false type: string - default: "v0" + default: "v1" py-cache-version: required: false type: string From a7056499bf09f5ea13911e6e0b22e0682abdfec7 Mon Sep 17 00:00:00 2001 From: lm-ydubler <92544319+lm-ydubler@users.noreply.github.com> Date: Fri, 3 Dec 2021 10:31:26 -0700 Subject: [PATCH 029/109] Update index-update.yaml --- .github/workflows/index-update.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/index-update.yaml b/.github/workflows/index-update.yaml index 02e2e2e7..caa884e1 100644 --- a/.github/workflows/index-update.yaml +++ b/.github/workflows/index-update.yaml @@ -36,7 +36,7 @@ on: apt-cache-version: required: false type: string - default: "v1" + default: "v0" py-cache-version: required: false type: string From 0cfc6ec401f00873a809298846b19d9cf9949ba1 Mon Sep 17 00:00:00 2001 From: lm-ydubler <92544319+lm-ydubler@users.noreply.github.com> Date: Fri, 3 Dec 2021 10:32:18 -0700 Subject: [PATCH 030/109] Update index-update.yaml --- .github/workflows/index-update.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/index-update.yaml b/.github/workflows/index-update.yaml index caa884e1..02e2e2e7 100644 --- a/.github/workflows/index-update.yaml +++ b/.github/workflows/index-update.yaml @@ -36,7 +36,7 @@ on: apt-cache-version: required: false type: string - default: "v0" + default: "v1" py-cache-version: required: false type: string From 29977b6c9e8f01f7f4ea8f1a4beb0c720225d15f Mon Sep 17 00:00:00 2001 From: lm-ydubler <92544319+lm-ydubler@users.noreply.github.com> Date: Fri, 3 Dec 2021 10:41:25 -0700 Subject: [PATCH 031/109] Update index-update.yaml --- .github/workflows/index-update.yaml | 23 ++++++++++++++++------- 1 file changed, 16 insertions(+), 7 deletions(-) diff --git a/.github/workflows/index-update.yaml b/.github/workflows/index-update.yaml index 02e2e2e7..87b524fa 100644 --- a/.github/workflows/index-update.yaml +++ b/.github/workflows/index-update.yaml @@ -174,20 +174,29 @@ jobs: #################################### # CHECK IF PACK HAS A PACK.YAML FILE #################################### + + echo "$FILE exists." + else + echo "$FILE does not exist." + fi #if ! [ -f "./pack.yaml"] || ["${repo_name}"==["test"||"test_content_version"]] ; then - if ! [ -f "./pack.yaml"] ; then - cd .. - rm -rf ${repo_name} - echo "DELETED clone of ${PACKS_ORG}/${repo_name}: missing pack.yaml" - echo "${PACKS_ORG}/${repo_name}" >> ${GITHUB_WORKSPACE}/bad_pack_repos - else - echo -e "\npwd:\n" #DEBUG + #if ! [ -f "./pack.yaml"] ; then + echo "lsing in directory" + ls + FILE=./pack.yaml + if [ -f "$FILE" ]; then pwd echo -e "\ncd..\n" #DEBUG cd .. echo -e "\npwd:\n" #DEBUG pwd echo -e "\nls:\n`ls`\n" #DEBUG + else + cd .. + rm -rf ${repo_name} + echo "DELETED clone of ${PACKS_ORG}/${repo_name}: missing pack.yaml" + echo "${PACKS_ORG}/${repo_name}" >> ${GITHUB_WORKSPACE}/bad_pack_repos + echo -e "\npwd:\n" #DEBUG fi done From 6f06406fe54139d49d552068555055f29ca378cc Mon Sep 17 00:00:00 2001 From: lm-ydubler <92544319+lm-ydubler@users.noreply.github.com> Date: Fri, 3 Dec 2021 10:42:00 -0700 Subject: [PATCH 032/109] Update index-update.yaml --- .github/workflows/index-update.yaml | 5 ----- 1 file changed, 5 deletions(-) diff --git a/.github/workflows/index-update.yaml b/.github/workflows/index-update.yaml index 87b524fa..307072a1 100644 --- a/.github/workflows/index-update.yaml +++ b/.github/workflows/index-update.yaml @@ -174,11 +174,6 @@ jobs: #################################### # CHECK IF PACK HAS A PACK.YAML FILE #################################### - - echo "$FILE exists." - else - echo "$FILE does not exist." - fi #if ! [ -f "./pack.yaml"] || ["${repo_name}"==["test"||"test_content_version"]] ; then #if ! [ -f "./pack.yaml"] ; then echo "lsing in directory" From 52e79b18096644ac387c3bf8b8cdac8b3302b0cd Mon Sep 17 00:00:00 2001 From: lm-ydubler <92544319+lm-ydubler@users.noreply.github.com> Date: Fri, 3 Dec 2021 10:50:21 -0700 Subject: [PATCH 033/109] Update index-update.yaml --- .github/workflows/index-update.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/index-update.yaml b/.github/workflows/index-update.yaml index 307072a1..dbf9ad5c 100644 --- a/.github/workflows/index-update.yaml +++ b/.github/workflows/index-update.yaml @@ -179,7 +179,7 @@ jobs: echo "lsing in directory" ls FILE=./pack.yaml - if [ -f "$FILE" ]; then + if [ -f "$FILE" ] && ["${repo_name}"!="test"] && ["${repo_name}"=="test_content_version"]; then pwd echo -e "\ncd..\n" #DEBUG cd .. From 50efc3a103f349f72247d28650c0d0b1842e86c4 Mon Sep 17 00:00:00 2001 From: lm-ydubler <92544319+lm-ydubler@users.noreply.github.com> Date: Fri, 3 Dec 2021 10:55:04 -0700 Subject: [PATCH 034/109] Update index-update.yaml --- .github/workflows/index-update.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/index-update.yaml b/.github/workflows/index-update.yaml index dbf9ad5c..307072a1 100644 --- a/.github/workflows/index-update.yaml +++ b/.github/workflows/index-update.yaml @@ -179,7 +179,7 @@ jobs: echo "lsing in directory" ls FILE=./pack.yaml - if [ -f "$FILE" ] && ["${repo_name}"!="test"] && ["${repo_name}"=="test_content_version"]; then + if [ -f "$FILE" ]; then pwd echo -e "\ncd..\n" #DEBUG cd .. From ad09b9c8c98ed3948e0bc997c2daa2d520daf0a1 Mon Sep 17 00:00:00 2001 From: lm-ydubler <92544319+lm-ydubler@users.noreply.github.com> Date: Fri, 3 Dec 2021 10:55:58 -0700 Subject: [PATCH 035/109] Update index-update.yaml --- .github/workflows/index-update.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/index-update.yaml b/.github/workflows/index-update.yaml index 307072a1..dbf9ad5c 100644 --- a/.github/workflows/index-update.yaml +++ b/.github/workflows/index-update.yaml @@ -179,7 +179,7 @@ jobs: echo "lsing in directory" ls FILE=./pack.yaml - if [ -f "$FILE" ]; then + if [ -f "$FILE" ] && ["${repo_name}"!="test"] && ["${repo_name}"=="test_content_version"]; then pwd echo -e "\ncd..\n" #DEBUG cd .. From 1091931abd45e733f25284f28c85b116562d993c Mon Sep 17 00:00:00 2001 From: lm-ydubler <92544319+lm-ydubler@users.noreply.github.com> Date: Fri, 3 Dec 2021 10:56:28 -0700 Subject: [PATCH 036/109] Update index-update.yaml --- .github/workflows/index-update.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/index-update.yaml b/.github/workflows/index-update.yaml index dbf9ad5c..a24b3f50 100644 --- a/.github/workflows/index-update.yaml +++ b/.github/workflows/index-update.yaml @@ -36,7 +36,7 @@ on: apt-cache-version: required: false type: string - default: "v1" + default: "v0" py-cache-version: required: false type: string From e78e1665f987de4397b19b59161ad289a8598c78 Mon Sep 17 00:00:00 2001 From: lm-ydubler <92544319+lm-ydubler@users.noreply.github.com> Date: Fri, 3 Dec 2021 10:58:44 -0700 Subject: [PATCH 037/109] Update index-update.yaml --- .github/workflows/index-update.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/index-update.yaml b/.github/workflows/index-update.yaml index a24b3f50..395e6db1 100644 --- a/.github/workflows/index-update.yaml +++ b/.github/workflows/index-update.yaml @@ -36,7 +36,7 @@ on: apt-cache-version: required: false type: string - default: "v0" + default: "v2" py-cache-version: required: false type: string From c1a33a2375c7fab037c9888f2427a794cefbe881 Mon Sep 17 00:00:00 2001 From: lm-ydubler <92544319+lm-ydubler@users.noreply.github.com> Date: Fri, 3 Dec 2021 11:07:17 -0700 Subject: [PATCH 038/109] Update index-update.yaml --- .github/workflows/index-update.yaml | 16 ++++++---------- 1 file changed, 6 insertions(+), 10 deletions(-) diff --git a/.github/workflows/index-update.yaml b/.github/workflows/index-update.yaml index 395e6db1..3134fc30 100644 --- a/.github/workflows/index-update.yaml +++ b/.github/workflows/index-update.yaml @@ -179,19 +179,15 @@ jobs: echo "lsing in directory" ls FILE=./pack.yaml - if [ -f "$FILE" ] && ["${repo_name}"!="test"] && ["${repo_name}"=="test_content_version"]; then - pwd - echo -e "\ncd..\n" #DEBUG - cd .. - echo -e "\npwd:\n" #DEBUG - pwd - echo -e "\nls:\n`ls`\n" #DEBUG - else + if ! [ -f "$FILE" ] || ["${repo_name}" == "test"] || ["${repo_name}" != "test_content_version"]; then + # DELETE PACK cd .. rm -rf ${repo_name} - echo "DELETED clone of ${PACKS_ORG}/${repo_name}: missing pack.yaml" + echo "DELETED clone of ${PACKS_ORG}/${repo_name}: missing pack.yaml OR pack is named 'test' or 'test_content_version'" echo "${PACKS_ORG}/${repo_name}" >> ${GITHUB_WORKSPACE}/bad_pack_repos - echo -e "\npwd:\n" #DEBUG + else + # PACK STAYS + echo ${repo_name} IS VALID! fi done From 8e4dc7853e7beb2aa6d6014a0afddfc1cbc1ab5a Mon Sep 17 00:00:00 2001 From: lm-ydubler <92544319+lm-ydubler@users.noreply.github.com> Date: Fri, 3 Dec 2021 11:14:25 -0700 Subject: [PATCH 039/109] Update index-update.yaml --- .github/workflows/index-update.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/index-update.yaml b/.github/workflows/index-update.yaml index 3134fc30..c4edb501 100644 --- a/.github/workflows/index-update.yaml +++ b/.github/workflows/index-update.yaml @@ -178,10 +178,10 @@ jobs: #if ! [ -f "./pack.yaml"] ; then echo "lsing in directory" ls - FILE=./pack.yaml + cd .. + FILE=./$repo_name/pack.yaml if ! [ -f "$FILE" ] || ["${repo_name}" == "test"] || ["${repo_name}" != "test_content_version"]; then # DELETE PACK - cd .. rm -rf ${repo_name} echo "DELETED clone of ${PACKS_ORG}/${repo_name}: missing pack.yaml OR pack is named 'test' or 'test_content_version'" echo "${PACKS_ORG}/${repo_name}" >> ${GITHUB_WORKSPACE}/bad_pack_repos From dcfe6753fdb38f9f4b0e5f2d66458a72d555d128 Mon Sep 17 00:00:00 2001 From: lm-ydubler <92544319+lm-ydubler@users.noreply.github.com> Date: Fri, 3 Dec 2021 11:16:22 -0700 Subject: [PATCH 040/109] Update index-update.yaml --- .github/workflows/index-update.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/index-update.yaml b/.github/workflows/index-update.yaml index c4edb501..eb9059b8 100644 --- a/.github/workflows/index-update.yaml +++ b/.github/workflows/index-update.yaml @@ -111,7 +111,7 @@ jobs: - name: Install APT Dependencies uses: StackStorm-Exchange/ci/.github/actions/apt-dependencies@gha with: - cache-version: ${{ inputs.apt-cache-version }} + #cache-version: ${{ inputs.apt-cache-version }} # this has dependencies for icon optimization extra-apt-packages-file: ci/.github/actions/apt-dependencies/index-apt-packages.txt From ba329f3d9164caeea94b98f4a12450914d2bf087 Mon Sep 17 00:00:00 2001 From: lm-ydubler <92544319+lm-ydubler@users.noreply.github.com> Date: Fri, 3 Dec 2021 11:17:28 -0700 Subject: [PATCH 041/109] Update index-update.yaml --- .github/workflows/index-update.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/index-update.yaml b/.github/workflows/index-update.yaml index eb9059b8..f559a490 100644 --- a/.github/workflows/index-update.yaml +++ b/.github/workflows/index-update.yaml @@ -113,7 +113,7 @@ jobs: with: #cache-version: ${{ inputs.apt-cache-version }} # this has dependencies for icon optimization - extra-apt-packages-file: ci/.github/actions/apt-dependencies/index-apt-packages.txt + #extra-apt-packages-file: ci/.github/actions/apt-dependencies/index-apt-packages.txt - name: Install Python Dependencies uses: StackStorm-Exchange/ci/.github/actions/py-dependencies@gha From cddf408c4614ea200344f611f78b1261ad335022 Mon Sep 17 00:00:00 2001 From: lm-ydubler <92544319+lm-ydubler@users.noreply.github.com> Date: Fri, 3 Dec 2021 11:19:11 -0700 Subject: [PATCH 042/109] Update index-update.yaml --- .github/workflows/index-update.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/index-update.yaml b/.github/workflows/index-update.yaml index f559a490..c4edb501 100644 --- a/.github/workflows/index-update.yaml +++ b/.github/workflows/index-update.yaml @@ -111,9 +111,9 @@ jobs: - name: Install APT Dependencies uses: StackStorm-Exchange/ci/.github/actions/apt-dependencies@gha with: - #cache-version: ${{ inputs.apt-cache-version }} + cache-version: ${{ inputs.apt-cache-version }} # this has dependencies for icon optimization - #extra-apt-packages-file: ci/.github/actions/apt-dependencies/index-apt-packages.txt + extra-apt-packages-file: ci/.github/actions/apt-dependencies/index-apt-packages.txt - name: Install Python Dependencies uses: StackStorm-Exchange/ci/.github/actions/py-dependencies@gha From 81b9a2b5127ac8cb239db0d6e8bdba0fc7b6f723 Mon Sep 17 00:00:00 2001 From: lm-ydubler <92544319+lm-ydubler@users.noreply.github.com> Date: Fri, 3 Dec 2021 11:19:21 -0700 Subject: [PATCH 043/109] Update index-update.yaml --- .github/workflows/index-update.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/index-update.yaml b/.github/workflows/index-update.yaml index c4edb501..596bade1 100644 --- a/.github/workflows/index-update.yaml +++ b/.github/workflows/index-update.yaml @@ -36,7 +36,7 @@ on: apt-cache-version: required: false type: string - default: "v2" + default: "v3" py-cache-version: required: false type: string From f13cb4765d6881f266a5004796b55cd5cccff700 Mon Sep 17 00:00:00 2001 From: lm-ydubler <92544319+lm-ydubler@users.noreply.github.com> Date: Fri, 3 Dec 2021 11:27:41 -0700 Subject: [PATCH 044/109] Update index-update.yaml --- .github/workflows/index-update.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/index-update.yaml b/.github/workflows/index-update.yaml index 596bade1..f3ce56a7 100644 --- a/.github/workflows/index-update.yaml +++ b/.github/workflows/index-update.yaml @@ -178,8 +178,7 @@ jobs: #if ! [ -f "./pack.yaml"] ; then echo "lsing in directory" ls - cd .. - FILE=./$repo_name/pack.yaml + FILE=./pack.yaml if ! [ -f "$FILE" ] || ["${repo_name}" == "test"] || ["${repo_name}" != "test_content_version"]; then # DELETE PACK rm -rf ${repo_name} @@ -188,6 +187,7 @@ jobs: else # PACK STAYS echo ${repo_name} IS VALID! + cd .. fi done From a5bcab848fbc2a44db8ef04d69d3647cf55b1a23 Mon Sep 17 00:00:00 2001 From: lm-ydubler <92544319+lm-ydubler@users.noreply.github.com> Date: Fri, 3 Dec 2021 11:34:36 -0700 Subject: [PATCH 045/109] Update index-update.yaml --- .github/workflows/index-update.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/index-update.yaml b/.github/workflows/index-update.yaml index f3ce56a7..70c8a747 100644 --- a/.github/workflows/index-update.yaml +++ b/.github/workflows/index-update.yaml @@ -36,7 +36,7 @@ on: apt-cache-version: required: false type: string - default: "v3" + default: "v0" py-cache-version: required: false type: string From 4cfb47ce7c43890e444722e502b479dba66386fa Mon Sep 17 00:00:00 2001 From: lm-ydubler <92544319+lm-ydubler@users.noreply.github.com> Date: Fri, 3 Dec 2021 11:38:21 -0700 Subject: [PATCH 046/109] Update index-update.yaml --- .github/workflows/index-update.yaml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.github/workflows/index-update.yaml b/.github/workflows/index-update.yaml index 70c8a747..a80d6508 100644 --- a/.github/workflows/index-update.yaml +++ b/.github/workflows/index-update.yaml @@ -72,6 +72,11 @@ jobs: run: | git config --global user.name "${GIT_USER_NAME}" git config --global user.email "${GIT_USER_EMAIL}" + + - name: Update YUM + shell: bash + run: | + yum update - name: Checkout index repo uses: actions/checkout@v2 From 3bdd26195268dd6b962a2c6a9c76a51ad2e32911 Mon Sep 17 00:00:00 2001 From: lm-ydubler <92544319+lm-ydubler@users.noreply.github.com> Date: Fri, 3 Dec 2021 11:39:48 -0700 Subject: [PATCH 047/109] Update index-update.yaml --- .github/workflows/index-update.yaml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/.github/workflows/index-update.yaml b/.github/workflows/index-update.yaml index a80d6508..83ea904d 100644 --- a/.github/workflows/index-update.yaml +++ b/.github/workflows/index-update.yaml @@ -75,8 +75,7 @@ jobs: - name: Update YUM shell: bash - run: | - yum update + run: yum update - name: Checkout index repo uses: actions/checkout@v2 From 90551bc21d01bb608550b0252ea6f78c32c7ed73 Mon Sep 17 00:00:00 2001 From: lm-ydubler <92544319+lm-ydubler@users.noreply.github.com> Date: Fri, 3 Dec 2021 11:40:52 -0700 Subject: [PATCH 048/109] Update index-update.yaml --- .github/workflows/index-update.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/index-update.yaml b/.github/workflows/index-update.yaml index 83ea904d..039024c6 100644 --- a/.github/workflows/index-update.yaml +++ b/.github/workflows/index-update.yaml @@ -36,7 +36,7 @@ on: apt-cache-version: required: false type: string - default: "v0" + default: "v4" py-cache-version: required: false type: string From 04d3853b02a67f553e4f1eadc67a264288fb7f15 Mon Sep 17 00:00:00 2001 From: lm-ydubler <92544319+lm-ydubler@users.noreply.github.com> Date: Fri, 3 Dec 2021 11:41:36 -0700 Subject: [PATCH 049/109] Update index-update.yaml --- .github/workflows/index-update.yaml | 4 ---- 1 file changed, 4 deletions(-) diff --git a/.github/workflows/index-update.yaml b/.github/workflows/index-update.yaml index 039024c6..317ce475 100644 --- a/.github/workflows/index-update.yaml +++ b/.github/workflows/index-update.yaml @@ -72,10 +72,6 @@ jobs: run: | git config --global user.name "${GIT_USER_NAME}" git config --global user.email "${GIT_USER_EMAIL}" - - - name: Update YUM - shell: bash - run: yum update - name: Checkout index repo uses: actions/checkout@v2 From cc4a5e0a9bf7cf613fd3d259a6dd2bc5016193bf Mon Sep 17 00:00:00 2001 From: lm-ydubler <92544319+lm-ydubler@users.noreply.github.com> Date: Fri, 3 Dec 2021 11:54:42 -0700 Subject: [PATCH 050/109] Update index-update.yaml --- .github/workflows/index-update.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/index-update.yaml b/.github/workflows/index-update.yaml index 317ce475..b0617d6c 100644 --- a/.github/workflows/index-update.yaml +++ b/.github/workflows/index-update.yaml @@ -181,6 +181,7 @@ jobs: FILE=./pack.yaml if ! [ -f "$FILE" ] || ["${repo_name}" == "test"] || ["${repo_name}" != "test_content_version"]; then # DELETE PACK + cd .. rm -rf ${repo_name} echo "DELETED clone of ${PACKS_ORG}/${repo_name}: missing pack.yaml OR pack is named 'test' or 'test_content_version'" echo "${PACKS_ORG}/${repo_name}" >> ${GITHUB_WORKSPACE}/bad_pack_repos From df3f60dd9e44e7f386cc34cba6b93e96042cdb75 Mon Sep 17 00:00:00 2001 From: lm-ydubler <92544319+lm-ydubler@users.noreply.github.com> Date: Fri, 3 Dec 2021 11:57:52 -0700 Subject: [PATCH 051/109] Update index-update.yaml --- .github/workflows/index-update.yaml | 2 -- 1 file changed, 2 deletions(-) diff --git a/.github/workflows/index-update.yaml b/.github/workflows/index-update.yaml index b0617d6c..c5c9ac23 100644 --- a/.github/workflows/index-update.yaml +++ b/.github/workflows/index-update.yaml @@ -180,13 +180,11 @@ jobs: ls FILE=./pack.yaml if ! [ -f "$FILE" ] || ["${repo_name}" == "test"] || ["${repo_name}" != "test_content_version"]; then - # DELETE PACK cd .. rm -rf ${repo_name} echo "DELETED clone of ${PACKS_ORG}/${repo_name}: missing pack.yaml OR pack is named 'test' or 'test_content_version'" echo "${PACKS_ORG}/${repo_name}" >> ${GITHUB_WORKSPACE}/bad_pack_repos else - # PACK STAYS echo ${repo_name} IS VALID! cd .. fi From cc296fcf6d69bed9cd49950c9feea430b12fb64f Mon Sep 17 00:00:00 2001 From: lm-ydubler <92544319+lm-ydubler@users.noreply.github.com> Date: Fri, 3 Dec 2021 12:08:59 -0700 Subject: [PATCH 052/109] Update index-update.yaml --- .github/workflows/index-update.yaml | 43 ++++------------------------- 1 file changed, 5 insertions(+), 38 deletions(-) diff --git a/.github/workflows/index-update.yaml b/.github/workflows/index-update.yaml index c5c9ac23..d9684212 100644 --- a/.github/workflows/index-update.yaml +++ b/.github/workflows/index-update.yaml @@ -132,61 +132,28 @@ jobs: mkdir -p ${PACKS_PATH} cd ${PACKS_PATH} source ${TOOLS_DIR}/functions.sh - ######################## - # LOOP THROUGH ALL PACKS - ######################## for repo_name in $(_gh_list_repo_names ${PACKS_ORG} ${PACKS_PREFIX}); do echo "::group::Clone ${PACKS_ORG}/${repo_name}" gh repo clone "${PACKS_ORG}/${repo_name}" # !TODO: checkout the latest tag. - echo "pwd:`pwd`\n" #DEBUG - echo -e "ls:\n`ls`\n" #DEBUG - echo "cd ${repo_name}:" #DEBUG cd ${repo_name} - echo "pwd:`pwd`\n" #DEBUG - echo -e "ls:\n`ls`\n" #DEBUG - echo "Retrieving the latest GIT Tag ..." #DEBUG - ############################################################################ - # MAKE SURE TAGS EXIST - THIS IF STATEMENT CATCHES/FIXES AN ERROR THAT WILL - # BREAK THE WORKFLOW IF "TAGS DO NOT EXIST" - ############################################################################ if latestTag=$(git describe --tags `git rev-list --tags --max-count=1`); then - echo -e "TAGS EXIST! -> Continuing process ..." #DEBUG - echo latestTag = $latestTag #DEBUG + echo latestTag = $latestTag else - echo -e "TAGS DO NOT EXIST -> Skipping repository." #DEBUG - fi - ################################# - # CHECK IF LATEST TAG IS NOT NULL - ################################# - if ! [ -z "$latestTag" ]; then - echo -e "latestTag = NOT NULL -> Continuing process ..."; #DEBUG - echo -e "git checkout $latestTag -b latestTagBranch:" #DEBUG - git checkout $latestTag -b latestTagBranch - else - echo -e "latestTag=NULL -> Skipping repository."; #DEBUG + echo latestTag = NULL fi echo "::endgroup::" # !TODO: exclude packs without tags # !TODO: add index exclusion list to exclude utility packs like # test, test_content_version - # if ! [ -f "${repo_name}/pack.yaml" ] ; then - #################################### - # CHECK IF PACK HAS A PACK.YAML FILE - #################################### - #if ! [ -f "./pack.yaml"] || ["${repo_name}"==["test"||"test_content_version"]] ; then - #if ! [ -f "./pack.yaml"] ; then - echo "lsing in directory" - ls - FILE=./pack.yaml + cd .. + FILE=./${repo_name}/pack.yaml if ! [ -f "$FILE" ] || ["${repo_name}" == "test"] || ["${repo_name}" != "test_content_version"]; then - cd .. rm -rf ${repo_name} echo "DELETED clone of ${PACKS_ORG}/${repo_name}: missing pack.yaml OR pack is named 'test' or 'test_content_version'" echo "${PACKS_ORG}/${repo_name}" >> ${GITHUB_WORKSPACE}/bad_pack_repos else - echo ${repo_name} IS VALID! - cd .. + echo ${repo_name} is a valid pack. fi done From f79cd67d33285f59820dcfea3bb639b27668070a Mon Sep 17 00:00:00 2001 From: lm-ydubler <92544319+lm-ydubler@users.noreply.github.com> Date: Fri, 3 Dec 2021 12:09:53 -0700 Subject: [PATCH 053/109] Update index-update.yaml --- .github/workflows/index-update.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/index-update.yaml b/.github/workflows/index-update.yaml index d9684212..051ed2f7 100644 --- a/.github/workflows/index-update.yaml +++ b/.github/workflows/index-update.yaml @@ -36,7 +36,7 @@ on: apt-cache-version: required: false type: string - default: "v4" + default: "v5" py-cache-version: required: false type: string From a1dacf38d045e92b2200e961cac6868c4731387e Mon Sep 17 00:00:00 2001 From: lm-ydubler <92544319+lm-ydubler@users.noreply.github.com> Date: Fri, 3 Dec 2021 12:17:38 -0700 Subject: [PATCH 054/109] Update index-update.yaml --- .github/workflows/index-update.yaml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/.github/workflows/index-update.yaml b/.github/workflows/index-update.yaml index 051ed2f7..b4502d2b 100644 --- a/.github/workflows/index-update.yaml +++ b/.github/workflows/index-update.yaml @@ -146,14 +146,15 @@ jobs: # !TODO: exclude packs without tags # !TODO: add index exclusion list to exclude utility packs like # test, test_content_version - cd .. - FILE=./${repo_name}/pack.yaml - if ! [ -f "$FILE" ] || ["${repo_name}" == "test"] || ["${repo_name}" != "test_content_version"]; then + FILE=./pack.yaml + if [ ! -f "FILE" ] || ["${repo_name}" == "test"] || ["${repo_name}" != "test_content_version"]; then + cd .. rm -rf ${repo_name} echo "DELETED clone of ${PACKS_ORG}/${repo_name}: missing pack.yaml OR pack is named 'test' or 'test_content_version'" echo "${PACKS_ORG}/${repo_name}" >> ${GITHUB_WORKSPACE}/bad_pack_repos else echo ${repo_name} is a valid pack. + cd .. fi done From 0b83360f2e4595e614eca13e940b3492b2d13f1d Mon Sep 17 00:00:00 2001 From: lm-ydubler <92544319+lm-ydubler@users.noreply.github.com> Date: Fri, 3 Dec 2021 12:18:58 -0700 Subject: [PATCH 055/109] Update index-update.yaml --- .github/workflows/index-update.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/index-update.yaml b/.github/workflows/index-update.yaml index b4502d2b..ca5b13c9 100644 --- a/.github/workflows/index-update.yaml +++ b/.github/workflows/index-update.yaml @@ -36,7 +36,7 @@ on: apt-cache-version: required: false type: string - default: "v5" + default: "v6" py-cache-version: required: false type: string From d4159e5793ea3d6df505c492087d5b8887d13710 Mon Sep 17 00:00:00 2001 From: lm-ydubler <92544319+lm-ydubler@users.noreply.github.com> Date: Fri, 3 Dec 2021 12:22:58 -0700 Subject: [PATCH 056/109] Update index-update.yaml --- .github/workflows/index-update.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/index-update.yaml b/.github/workflows/index-update.yaml index ca5b13c9..fdc68ffb 100644 --- a/.github/workflows/index-update.yaml +++ b/.github/workflows/index-update.yaml @@ -147,7 +147,7 @@ jobs: # !TODO: add index exclusion list to exclude utility packs like # test, test_content_version FILE=./pack.yaml - if [ ! -f "FILE" ] || ["${repo_name}" == "test"] || ["${repo_name}" != "test_content_version"]; then + if [ ! -f "$FILE" ] || ["${repo_name}" == "test"] || ["${repo_name}" != "test_content_version"]; then cd .. rm -rf ${repo_name} echo "DELETED clone of ${PACKS_ORG}/${repo_name}: missing pack.yaml OR pack is named 'test' or 'test_content_version'" From e3bcf9dc3b1dafbfcb1c0cb8783e771ce429c947 Mon Sep 17 00:00:00 2001 From: lm-ydubler <92544319+lm-ydubler@users.noreply.github.com> Date: Fri, 3 Dec 2021 12:36:17 -0700 Subject: [PATCH 057/109] Update index-update.yaml --- .github/workflows/index-update.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/index-update.yaml b/.github/workflows/index-update.yaml index fdc68ffb..9fdcfe88 100644 --- a/.github/workflows/index-update.yaml +++ b/.github/workflows/index-update.yaml @@ -139,6 +139,7 @@ jobs: cd ${repo_name} if latestTag=$(git describe --tags `git rev-list --tags --max-count=1`); then echo latestTag = $latestTag + git checkout $latestTag -b latestTagBranch else echo latestTag = NULL fi From 40285cea32ac8f7dc599462a7cfa8c6d1c310b31 Mon Sep 17 00:00:00 2001 From: lm-ydubler <92544319+lm-ydubler@users.noreply.github.com> Date: Fri, 3 Dec 2021 12:37:10 -0700 Subject: [PATCH 058/109] Update index-update.yaml --- .github/workflows/index-update.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/index-update.yaml b/.github/workflows/index-update.yaml index 9fdcfe88..688fa462 100644 --- a/.github/workflows/index-update.yaml +++ b/.github/workflows/index-update.yaml @@ -36,7 +36,7 @@ on: apt-cache-version: required: false type: string - default: "v6" + default: "v7" py-cache-version: required: false type: string From 4d085bc56b7ac3ed1ac73e104d237bcc2a60f5e7 Mon Sep 17 00:00:00 2001 From: lm-ydubler <92544319+lm-ydubler@users.noreply.github.com> Date: Fri, 3 Dec 2021 12:38:01 -0700 Subject: [PATCH 059/109] Update index-update.yaml --- .github/workflows/index-update.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/index-update.yaml b/.github/workflows/index-update.yaml index 688fa462..b2610903 100644 --- a/.github/workflows/index-update.yaml +++ b/.github/workflows/index-update.yaml @@ -148,7 +148,7 @@ jobs: # !TODO: add index exclusion list to exclude utility packs like # test, test_content_version FILE=./pack.yaml - if [ ! -f "$FILE" ] || ["${repo_name}" == "test"] || ["${repo_name}" != "test_content_version"]; then + if [[ ! -f "$FILE" ]] || [["${repo_name}" == "test"]] || [["${repo_name}" != "test_content_version"]]; then cd .. rm -rf ${repo_name} echo "DELETED clone of ${PACKS_ORG}/${repo_name}: missing pack.yaml OR pack is named 'test' or 'test_content_version'" From 878d641415ca653d3f4ec18558c786a9338ea2d1 Mon Sep 17 00:00:00 2001 From: lm-ydubler <92544319+lm-ydubler@users.noreply.github.com> Date: Fri, 3 Dec 2021 12:38:51 -0700 Subject: [PATCH 060/109] Update index-update.yaml --- .github/workflows/index-update.yaml | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/.github/workflows/index-update.yaml b/.github/workflows/index-update.yaml index b2610903..9ca37490 100644 --- a/.github/workflows/index-update.yaml +++ b/.github/workflows/index-update.yaml @@ -36,7 +36,7 @@ on: apt-cache-version: required: false type: string - default: "v7" + default: "v8" py-cache-version: required: false type: string @@ -147,8 +147,7 @@ jobs: # !TODO: exclude packs without tags # !TODO: add index exclusion list to exclude utility packs like # test, test_content_version - FILE=./pack.yaml - if [[ ! -f "$FILE" ]] || [["${repo_name}" == "test"]] || [["${repo_name}" != "test_content_version"]]; then + if [[ ! -f "./pack.yaml" ]] || [["${repo_name}" == "test"]] || [["${repo_name}" != "test_content_version"]]; then cd .. rm -rf ${repo_name} echo "DELETED clone of ${PACKS_ORG}/${repo_name}: missing pack.yaml OR pack is named 'test' or 'test_content_version'" From f4baf87b49249e305aa3e0eb04d5dfc893b56224 Mon Sep 17 00:00:00 2001 From: lm-ydubler <92544319+lm-ydubler@users.noreply.github.com> Date: Fri, 3 Dec 2021 12:43:02 -0700 Subject: [PATCH 061/109] Update index-update.yaml --- .github/workflows/index-update.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/index-update.yaml b/.github/workflows/index-update.yaml index 9ca37490..acddb76b 100644 --- a/.github/workflows/index-update.yaml +++ b/.github/workflows/index-update.yaml @@ -147,7 +147,7 @@ jobs: # !TODO: exclude packs without tags # !TODO: add index exclusion list to exclude utility packs like # test, test_content_version - if [[ ! -f "./pack.yaml" ]] || [["${repo_name}" == "test"]] || [["${repo_name}" != "test_content_version"]]; then + if [[ ! -f "./pack.yaml" || "${repo_name}" == "test" || "${repo_name}" == "test_content_version" ]]; then cd .. rm -rf ${repo_name} echo "DELETED clone of ${PACKS_ORG}/${repo_name}: missing pack.yaml OR pack is named 'test' or 'test_content_version'" From 2783098c42e329c1777d3733aeaf0b7fdaa9ad16 Mon Sep 17 00:00:00 2001 From: lm-ydubler <92544319+lm-ydubler@users.noreply.github.com> Date: Fri, 3 Dec 2021 12:43:15 -0700 Subject: [PATCH 062/109] Update index-update.yaml --- .github/workflows/index-update.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/index-update.yaml b/.github/workflows/index-update.yaml index acddb76b..c58c327f 100644 --- a/.github/workflows/index-update.yaml +++ b/.github/workflows/index-update.yaml @@ -36,7 +36,7 @@ on: apt-cache-version: required: false type: string - default: "v8" + default: "v9" py-cache-version: required: false type: string From 7f8ac5bb93d22f89d6cdad497ddc543e33c62d8e Mon Sep 17 00:00:00 2001 From: lm-ydubler <92544319+lm-ydubler@users.noreply.github.com> Date: Fri, 3 Dec 2021 12:58:04 -0700 Subject: [PATCH 063/109] Update index-update.yaml --- .github/workflows/index-update.yaml | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/.github/workflows/index-update.yaml b/.github/workflows/index-update.yaml index c58c327f..6b08ef0d 100644 --- a/.github/workflows/index-update.yaml +++ b/.github/workflows/index-update.yaml @@ -36,7 +36,7 @@ on: apt-cache-version: required: false type: string - default: "v9" + default: "v10" py-cache-version: required: false type: string @@ -147,10 +147,15 @@ jobs: # !TODO: exclude packs without tags # !TODO: add index exclusion list to exclude utility packs like # test, test_content_version - if [[ ! -f "./pack.yaml" || "${repo_name}" == "test" || "${repo_name}" == "test_content_version" ]]; then + if [[ ! -f "./pack.yaml" ]]; then cd .. rm -rf ${repo_name} - echo "DELETED clone of ${PACKS_ORG}/${repo_name}: missing pack.yaml OR pack is named 'test' or 'test_content_version'" + echo "DELETED clone of ${PACKS_ORG}/${repo_name}: missing pack.yaml" + echo "${PACKS_ORG}/${repo_name}" >> ${GITHUB_WORKSPACE}/bad_pack_repos + elif [[ "${repo_name}" == "test" || "${repo_name}" == "test_content_version" ]]; then + cd .. + rm -rf ${repo_name} + echo "DELETED clone of ${PACKS_ORG}/${repo_name}: Pack is a utility pack named 'test' or 'test_content_version'. Utility packs are excluded from the index." echo "${PACKS_ORG}/${repo_name}" >> ${GITHUB_WORKSPACE}/bad_pack_repos else echo ${repo_name} is a valid pack. From 80e54720f9a4070f86318a07cf301acdb10a6dd0 Mon Sep 17 00:00:00 2001 From: lm-ydubler <92544319+lm-ydubler@users.noreply.github.com> Date: Fri, 3 Dec 2021 13:14:40 -0700 Subject: [PATCH 064/109] Update index-update.yaml --- .github/workflows/index-update.yaml | 21 ++++++++++++--------- 1 file changed, 12 insertions(+), 9 deletions(-) diff --git a/.github/workflows/index-update.yaml b/.github/workflows/index-update.yaml index 6b08ef0d..fbd592ed 100644 --- a/.github/workflows/index-update.yaml +++ b/.github/workflows/index-update.yaml @@ -36,7 +36,7 @@ on: apt-cache-version: required: false type: string - default: "v10" + default: "v11" py-cache-version: required: false type: string @@ -136,18 +136,20 @@ jobs: echo "::group::Clone ${PACKS_ORG}/${repo_name}" gh repo clone "${PACKS_ORG}/${repo_name}" # !TODO: checkout the latest tag. + # !TODO: exclude packs without tags + # !TODO: add index exclusion list to exclude utility packs like + # test, test_content_version cd ${repo_name} if latestTag=$(git describe --tags `git rev-list --tags --max-count=1`); then echo latestTag = $latestTag git checkout $latestTag -b latestTagBranch - else - echo latestTag = NULL fi - echo "::endgroup::" - # !TODO: exclude packs without tags - # !TODO: add index exclusion list to exclude utility packs like - # test, test_content_version - if [[ ! -f "./pack.yaml" ]]; then + if ! latestTag=$(git describe --tags `git rev-list --tags --max-count=1`); then + cd .. + rm -rf ${repo_name} + echo "DELETED clone of ${PACKS_ORG}/${repo_name}: pack's git repository has no tags" + echo "${PACKS_ORG}/${repo_name}" >> ${GITHUB_WORKSPACE}/bad_pack_repos + elif [[ ! -f "./pack.yaml" ]]; then cd .. rm -rf ${repo_name} echo "DELETED clone of ${PACKS_ORG}/${repo_name}: missing pack.yaml" @@ -155,12 +157,13 @@ jobs: elif [[ "${repo_name}" == "test" || "${repo_name}" == "test_content_version" ]]; then cd .. rm -rf ${repo_name} - echo "DELETED clone of ${PACKS_ORG}/${repo_name}: Pack is a utility pack named 'test' or 'test_content_version'. Utility packs are excluded from the index." + echo "DELETED clone of ${PACKS_ORG}/${repo_name}: pack is a utility pack named 'test' or 'test_content_version'. Utility packs are excluded from the index." echo "${PACKS_ORG}/${repo_name}" >> ${GITHUB_WORKSPACE}/bad_pack_repos else echo ${repo_name} is a valid pack. cd .. fi + echo "::endgroup::" done # validate.py hard codes the pack repo prefix From 820af9524c94614a501d059f264e7f18a2acd2d3 Mon Sep 17 00:00:00 2001 From: lm-ydubler <92544319+lm-ydubler@users.noreply.github.com> Date: Fri, 3 Dec 2021 13:21:35 -0700 Subject: [PATCH 065/109] Update index-update.yaml --- .github/workflows/index-update.yaml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/index-update.yaml b/.github/workflows/index-update.yaml index fbd592ed..80c6e4cd 100644 --- a/.github/workflows/index-update.yaml +++ b/.github/workflows/index-update.yaml @@ -36,7 +36,7 @@ on: apt-cache-version: required: false type: string - default: "v11" + default: "v12" py-cache-version: required: false type: string @@ -144,7 +144,7 @@ jobs: echo latestTag = $latestTag git checkout $latestTag -b latestTagBranch fi - if ! latestTag=$(git describe --tags `git rev-list --tags --max-count=1`); then + if [[ -z "$latestTag" ]]; then cd .. rm -rf ${repo_name} echo "DELETED clone of ${PACKS_ORG}/${repo_name}: pack's git repository has no tags" @@ -154,7 +154,7 @@ jobs: rm -rf ${repo_name} echo "DELETED clone of ${PACKS_ORG}/${repo_name}: missing pack.yaml" echo "${PACKS_ORG}/${repo_name}" >> ${GITHUB_WORKSPACE}/bad_pack_repos - elif [[ "${repo_name}" == "test" || "${repo_name}" == "test_content_version" ]]; then + elif [[ "${repo_name}" == "test" ]] || [[ "${repo_name}" == "test_content_version" ]]; then cd .. rm -rf ${repo_name} echo "DELETED clone of ${PACKS_ORG}/${repo_name}: pack is a utility pack named 'test' or 'test_content_version'. Utility packs are excluded from the index." From c3917e2f99b932e5cd7d1b2df6cd2f9e278cbccf Mon Sep 17 00:00:00 2001 From: lm-ydubler <92544319+lm-ydubler@users.noreply.github.com> Date: Fri, 3 Dec 2021 13:33:03 -0700 Subject: [PATCH 066/109] Update index-update.yaml --- .github/workflows/index-update.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/index-update.yaml b/.github/workflows/index-update.yaml index 80c6e4cd..76816b49 100644 --- a/.github/workflows/index-update.yaml +++ b/.github/workflows/index-update.yaml @@ -154,7 +154,7 @@ jobs: rm -rf ${repo_name} echo "DELETED clone of ${PACKS_ORG}/${repo_name}: missing pack.yaml" echo "${PACKS_ORG}/${repo_name}" >> ${GITHUB_WORKSPACE}/bad_pack_repos - elif [[ "${repo_name}" == "test" ]] || [[ "${repo_name}" == "test_content_version" ]]; then + elif [[ "${repo_name}" == "test" || "${repo_name}" == "test_content_version" ]]; then cd .. rm -rf ${repo_name} echo "DELETED clone of ${PACKS_ORG}/${repo_name}: pack is a utility pack named 'test' or 'test_content_version'. Utility packs are excluded from the index." From b11a4b8b9ecc919b07096f042b205a6f1ef90386 Mon Sep 17 00:00:00 2001 From: lm-ydubler <92544319+lm-ydubler@users.noreply.github.com> Date: Fri, 3 Dec 2021 13:33:52 -0700 Subject: [PATCH 067/109] Update index-update.yaml --- .github/workflows/index-update.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/index-update.yaml b/.github/workflows/index-update.yaml index 76816b49..79aa481c 100644 --- a/.github/workflows/index-update.yaml +++ b/.github/workflows/index-update.yaml @@ -36,7 +36,7 @@ on: apt-cache-version: required: false type: string - default: "v12" + default: "v13" py-cache-version: required: false type: string From 1c88f4e4b39d0b1aec374a9872be6666bdd86a7a Mon Sep 17 00:00:00 2001 From: lm-ydubler <92544319+lm-ydubler@users.noreply.github.com> Date: Fri, 3 Dec 2021 13:40:40 -0700 Subject: [PATCH 068/109] Update index-update.yaml --- .github/workflows/index-update.yaml | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/.github/workflows/index-update.yaml b/.github/workflows/index-update.yaml index 79aa481c..4fac8514 100644 --- a/.github/workflows/index-update.yaml +++ b/.github/workflows/index-update.yaml @@ -36,7 +36,7 @@ on: apt-cache-version: required: false type: string - default: "v13" + default: "v14" py-cache-version: required: false type: string @@ -144,6 +144,8 @@ jobs: echo latestTag = $latestTag git checkout $latestTag -b latestTagBranch fi + echo repo_name=${repo_name} + echo repo_name=$repo_name if [[ -z "$latestTag" ]]; then cd .. rm -rf ${repo_name} @@ -154,10 +156,15 @@ jobs: rm -rf ${repo_name} echo "DELETED clone of ${PACKS_ORG}/${repo_name}: missing pack.yaml" echo "${PACKS_ORG}/${repo_name}" >> ${GITHUB_WORKSPACE}/bad_pack_repos - elif [[ "${repo_name}" == "test" || "${repo_name}" == "test_content_version" ]]; then + elif [[ "$repo_name" == "test" ]]; then cd .. rm -rf ${repo_name} - echo "DELETED clone of ${PACKS_ORG}/${repo_name}: pack is a utility pack named 'test' or 'test_content_version'. Utility packs are excluded from the index." + echo "DELETED clone of ${PACKS_ORG}/${repo_name}: pack is a utility pack and excluded from the index." + echo "${PACKS_ORG}/${repo_name}" >> ${GITHUB_WORKSPACE}/bad_pack_repos + elif [[ "$repo_name" == "test_content_version"]]; then + cd .. + rm -rf ${repo_name} + echo "DELETED clone of ${PACKS_ORG}/${repo_name}: pack is a utility pack and excluded from the index." echo "${PACKS_ORG}/${repo_name}" >> ${GITHUB_WORKSPACE}/bad_pack_repos else echo ${repo_name} is a valid pack. From f64dcfafc189fe2654b91f21993cee8dccf47359 Mon Sep 17 00:00:00 2001 From: lm-ydubler <92544319+lm-ydubler@users.noreply.github.com> Date: Fri, 3 Dec 2021 14:04:06 -0700 Subject: [PATCH 069/109] Update index-update.yaml --- .github/workflows/index-update.yaml | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/.github/workflows/index-update.yaml b/.github/workflows/index-update.yaml index 4fac8514..7a369c43 100644 --- a/.github/workflows/index-update.yaml +++ b/.github/workflows/index-update.yaml @@ -36,7 +36,7 @@ on: apt-cache-version: required: false type: string - default: "v14" + default: "v13" py-cache-version: required: false type: string @@ -144,8 +144,6 @@ jobs: echo latestTag = $latestTag git checkout $latestTag -b latestTagBranch fi - echo repo_name=${repo_name} - echo repo_name=$repo_name if [[ -z "$latestTag" ]]; then cd .. rm -rf ${repo_name} From 21b399402b0089dfecac45956118a4905496729c Mon Sep 17 00:00:00 2001 From: lm-ydubler <92544319+lm-ydubler@users.noreply.github.com> Date: Fri, 3 Dec 2021 14:05:01 -0700 Subject: [PATCH 070/109] Update index-update.yaml --- .github/workflows/index-update.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/index-update.yaml b/.github/workflows/index-update.yaml index 7a369c43..b3592213 100644 --- a/.github/workflows/index-update.yaml +++ b/.github/workflows/index-update.yaml @@ -36,7 +36,7 @@ on: apt-cache-version: required: false type: string - default: "v13" + default: "v14" py-cache-version: required: false type: string From 7d346187009aaf494aedb0cc9b0747484dcf0225 Mon Sep 17 00:00:00 2001 From: lm-ydubler <92544319+lm-ydubler@users.noreply.github.com> Date: Fri, 3 Dec 2021 14:23:09 -0700 Subject: [PATCH 071/109] Update index-update.yaml --- .github/workflows/index-update.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/index-update.yaml b/.github/workflows/index-update.yaml index b3592213..ee40371c 100644 --- a/.github/workflows/index-update.yaml +++ b/.github/workflows/index-update.yaml @@ -36,7 +36,7 @@ on: apt-cache-version: required: false type: string - default: "v14" + default: "v15" py-cache-version: required: false type: string From c00b9848f8f7ff92b818be5220f871d9dedb8701 Mon Sep 17 00:00:00 2001 From: lm-ydubler <92544319+lm-ydubler@users.noreply.github.com> Date: Fri, 3 Dec 2021 14:26:25 -0700 Subject: [PATCH 072/109] Update index-update.yaml --- .github/workflows/index-update.yaml | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/.github/workflows/index-update.yaml b/.github/workflows/index-update.yaml index ee40371c..42e7b333 100644 --- a/.github/workflows/index-update.yaml +++ b/.github/workflows/index-update.yaml @@ -36,7 +36,7 @@ on: apt-cache-version: required: false type: string - default: "v15" + default: "v16" py-cache-version: required: false type: string @@ -154,16 +154,16 @@ jobs: rm -rf ${repo_name} echo "DELETED clone of ${PACKS_ORG}/${repo_name}: missing pack.yaml" echo "${PACKS_ORG}/${repo_name}" >> ${GITHUB_WORKSPACE}/bad_pack_repos - elif [[ "$repo_name" == "test" ]]; then - cd .. - rm -rf ${repo_name} - echo "DELETED clone of ${PACKS_ORG}/${repo_name}: pack is a utility pack and excluded from the index." - echo "${PACKS_ORG}/${repo_name}" >> ${GITHUB_WORKSPACE}/bad_pack_repos - elif [[ "$repo_name" == "test_content_version"]]; then - cd .. - rm -rf ${repo_name} - echo "DELETED clone of ${PACKS_ORG}/${repo_name}: pack is a utility pack and excluded from the index." - echo "${PACKS_ORG}/${repo_name}" >> ${GITHUB_WORKSPACE}/bad_pack_repos + # elif [[ "$repo_name" == "test" ]]; then + # cd .. + # rm -rf ${repo_name} + # echo "DELETED clone of ${PACKS_ORG}/${repo_name}: pack is a utility pack and excluded from the index." + # echo "${PACKS_ORG}/${repo_name}" >> ${GITHUB_WORKSPACE}/bad_pack_repos + # elif [[ "$repo_name" == "test_content_version"]]; then + # cd .. + # rm -rf ${repo_name} + # echo "DELETED clone of ${PACKS_ORG}/${repo_name}: pack is a utility pack and excluded from the index." + # echo "${PACKS_ORG}/${repo_name}" >> ${GITHUB_WORKSPACE}/bad_pack_repos else echo ${repo_name} is a valid pack. cd .. From 71ec18892e748d84283bfbd5653530e02a6cc87a Mon Sep 17 00:00:00 2001 From: lm-ydubler <92544319+lm-ydubler@users.noreply.github.com> Date: Fri, 3 Dec 2021 14:31:39 -0700 Subject: [PATCH 073/109] Update index-update.yaml --- .github/workflows/index-update.yaml | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/.github/workflows/index-update.yaml b/.github/workflows/index-update.yaml index 42e7b333..3b3526e1 100644 --- a/.github/workflows/index-update.yaml +++ b/.github/workflows/index-update.yaml @@ -36,7 +36,7 @@ on: apt-cache-version: required: false type: string - default: "v16" + default: "v17" py-cache-version: required: false type: string @@ -154,16 +154,16 @@ jobs: rm -rf ${repo_name} echo "DELETED clone of ${PACKS_ORG}/${repo_name}: missing pack.yaml" echo "${PACKS_ORG}/${repo_name}" >> ${GITHUB_WORKSPACE}/bad_pack_repos - # elif [[ "$repo_name" == "test" ]]; then - # cd .. - # rm -rf ${repo_name} - # echo "DELETED clone of ${PACKS_ORG}/${repo_name}: pack is a utility pack and excluded from the index." - # echo "${PACKS_ORG}/${repo_name}" >> ${GITHUB_WORKSPACE}/bad_pack_repos - # elif [[ "$repo_name" == "test_content_version"]]; then - # cd .. - # rm -rf ${repo_name} - # echo "DELETED clone of ${PACKS_ORG}/${repo_name}: pack is a utility pack and excluded from the index." - # echo "${PACKS_ORG}/${repo_name}" >> ${GITHUB_WORKSPACE}/bad_pack_repos + elif [[ "${repo_name}" == "test" ]]; then + cd .. + rm -rf ${repo_name} + echo "DELETED clone of ${PACKS_ORG}/${repo_name}: pack is a utility pack and excluded from the index." + echo "${PACKS_ORG}/${repo_name}" >> ${GITHUB_WORKSPACE}/bad_pack_repos + elif [[ "${repo_name}" == "test_content_version" ]]; then + cd .. + rm -rf ${repo_name} + echo "DELETED clone of ${PACKS_ORG}/${repo_name}: pack is a utility pack and excluded from the index." + echo "${PACKS_ORG}/${repo_name}" >> ${GITHUB_WORKSPACE}/bad_pack_repos else echo ${repo_name} is a valid pack. cd .. From 5ba4996b7f6bccf727af5c7e1feee5f1f7e44934 Mon Sep 17 00:00:00 2001 From: lm-ydubler <92544319+lm-ydubler@users.noreply.github.com> Date: Fri, 3 Dec 2021 14:44:40 -0700 Subject: [PATCH 074/109] Update index-update.yaml --- .github/workflows/index-update.yaml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/index-update.yaml b/.github/workflows/index-update.yaml index 3b3526e1..531aea6d 100644 --- a/.github/workflows/index-update.yaml +++ b/.github/workflows/index-update.yaml @@ -36,7 +36,7 @@ on: apt-cache-version: required: false type: string - default: "v17" + default: "v18" py-cache-version: required: false type: string @@ -154,12 +154,12 @@ jobs: rm -rf ${repo_name} echo "DELETED clone of ${PACKS_ORG}/${repo_name}: missing pack.yaml" echo "${PACKS_ORG}/${repo_name}" >> ${GITHUB_WORKSPACE}/bad_pack_repos - elif [[ "${repo_name}" == "test" ]]; then + elif [[ "$repo_name" == "test" ]]; then cd .. rm -rf ${repo_name} echo "DELETED clone of ${PACKS_ORG}/${repo_name}: pack is a utility pack and excluded from the index." echo "${PACKS_ORG}/${repo_name}" >> ${GITHUB_WORKSPACE}/bad_pack_repos - elif [[ "${repo_name}" == "test_content_version" ]]; then + elif [[ "$repo_name" == "test_content_version" ]]; then cd .. rm -rf ${repo_name} echo "DELETED clone of ${PACKS_ORG}/${repo_name}: pack is a utility pack and excluded from the index." From 725677eedf6c79d086e47d36f348cdfcbce33edd Mon Sep 17 00:00:00 2001 From: lm-ydubler <92544319+lm-ydubler@users.noreply.github.com> Date: Fri, 3 Dec 2021 16:24:35 -0700 Subject: [PATCH 075/109] Update index-update.yaml --- .github/workflows/index-update.yaml | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/.github/workflows/index-update.yaml b/.github/workflows/index-update.yaml index 531aea6d..ce005116 100644 --- a/.github/workflows/index-update.yaml +++ b/.github/workflows/index-update.yaml @@ -36,7 +36,7 @@ on: apt-cache-version: required: false type: string - default: "v18" + default: "v19" py-cache-version: required: false type: string @@ -139,6 +139,8 @@ jobs: # !TODO: exclude packs without tags # !TODO: add index exclusion list to exclude utility packs like # test, test_content_version + reponame = ${repo_name} + echo reponame = $reponame cd ${repo_name} if latestTag=$(git describe --tags `git rev-list --tags --max-count=1`); then echo latestTag = $latestTag @@ -154,12 +156,12 @@ jobs: rm -rf ${repo_name} echo "DELETED clone of ${PACKS_ORG}/${repo_name}: missing pack.yaml" echo "${PACKS_ORG}/${repo_name}" >> ${GITHUB_WORKSPACE}/bad_pack_repos - elif [[ "$repo_name" == "test" ]]; then + elif [[ $reponame == "test" ]]; then cd .. rm -rf ${repo_name} echo "DELETED clone of ${PACKS_ORG}/${repo_name}: pack is a utility pack and excluded from the index." echo "${PACKS_ORG}/${repo_name}" >> ${GITHUB_WORKSPACE}/bad_pack_repos - elif [[ "$repo_name" == "test_content_version" ]]; then + elif [[ ${repo_name} == "test_content_version" ]]; then cd .. rm -rf ${repo_name} echo "DELETED clone of ${PACKS_ORG}/${repo_name}: pack is a utility pack and excluded from the index." From 8377fbe571ca0bfce415ea96329927adabf4a6b2 Mon Sep 17 00:00:00 2001 From: lm-ydubler <92544319+lm-ydubler@users.noreply.github.com> Date: Fri, 3 Dec 2021 16:27:59 -0700 Subject: [PATCH 076/109] Update index-update.yaml --- .github/workflows/index-update.yaml | 2 -- 1 file changed, 2 deletions(-) diff --git a/.github/workflows/index-update.yaml b/.github/workflows/index-update.yaml index ce005116..d45d233c 100644 --- a/.github/workflows/index-update.yaml +++ b/.github/workflows/index-update.yaml @@ -139,8 +139,6 @@ jobs: # !TODO: exclude packs without tags # !TODO: add index exclusion list to exclude utility packs like # test, test_content_version - reponame = ${repo_name} - echo reponame = $reponame cd ${repo_name} if latestTag=$(git describe --tags `git rev-list --tags --max-count=1`); then echo latestTag = $latestTag From 9e90dbb03266e29c1f32b5c6bf545da36c97bcf2 Mon Sep 17 00:00:00 2001 From: lm-ydubler <92544319+lm-ydubler@users.noreply.github.com> Date: Fri, 3 Dec 2021 16:32:35 -0700 Subject: [PATCH 077/109] Update index-update.yaml --- .github/workflows/index-update.yaml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/index-update.yaml b/.github/workflows/index-update.yaml index d45d233c..4a62e260 100644 --- a/.github/workflows/index-update.yaml +++ b/.github/workflows/index-update.yaml @@ -36,7 +36,7 @@ on: apt-cache-version: required: false type: string - default: "v19" + default: "v20" py-cache-version: required: false type: string @@ -139,6 +139,8 @@ jobs: # !TODO: exclude packs without tags # !TODO: add index exclusion list to exclude utility packs like # test, test_content_version + reponame = "${repo_name}" + echo reponame=$reponame cd ${repo_name} if latestTag=$(git describe --tags `git rev-list --tags --max-count=1`); then echo latestTag = $latestTag From 2f7d706f0fe851890bc6d682cc08ce68d171525d Mon Sep 17 00:00:00 2001 From: lm-ydubler <92544319+lm-ydubler@users.noreply.github.com> Date: Fri, 3 Dec 2021 16:35:39 -0700 Subject: [PATCH 078/109] Update index-update.yaml --- .github/workflows/index-update.yaml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/index-update.yaml b/.github/workflows/index-update.yaml index 4a62e260..784a49ee 100644 --- a/.github/workflows/index-update.yaml +++ b/.github/workflows/index-update.yaml @@ -36,7 +36,7 @@ on: apt-cache-version: required: false type: string - default: "v20" + default: "v21" py-cache-version: required: false type: string @@ -156,12 +156,12 @@ jobs: rm -rf ${repo_name} echo "DELETED clone of ${PACKS_ORG}/${repo_name}: missing pack.yaml" echo "${PACKS_ORG}/${repo_name}" >> ${GITHUB_WORKSPACE}/bad_pack_repos - elif [[ $reponame == "test" ]]; then + elif [[ "${reponame}" == "test" ]]; then cd .. rm -rf ${repo_name} echo "DELETED clone of ${PACKS_ORG}/${repo_name}: pack is a utility pack and excluded from the index." echo "${PACKS_ORG}/${repo_name}" >> ${GITHUB_WORKSPACE}/bad_pack_repos - elif [[ ${repo_name} == "test_content_version" ]]; then + elif [[ "${repo_name}" == "test_content_version" ]]; then cd .. rm -rf ${repo_name} echo "DELETED clone of ${PACKS_ORG}/${repo_name}: pack is a utility pack and excluded from the index." From f01da1291406dce5d975582164807f324a715ecb Mon Sep 17 00:00:00 2001 From: lm-ydubler <92544319+lm-ydubler@users.noreply.github.com> Date: Fri, 3 Dec 2021 16:38:08 -0700 Subject: [PATCH 079/109] Update index-update.yaml --- .github/workflows/index-update.yaml | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/.github/workflows/index-update.yaml b/.github/workflows/index-update.yaml index 784a49ee..9ce260a8 100644 --- a/.github/workflows/index-update.yaml +++ b/.github/workflows/index-update.yaml @@ -36,7 +36,7 @@ on: apt-cache-version: required: false type: string - default: "v21" + default: "v22" py-cache-version: required: false type: string @@ -139,8 +139,6 @@ jobs: # !TODO: exclude packs without tags # !TODO: add index exclusion list to exclude utility packs like # test, test_content_version - reponame = "${repo_name}" - echo reponame=$reponame cd ${repo_name} if latestTag=$(git describe --tags `git rev-list --tags --max-count=1`); then echo latestTag = $latestTag From 5f801ff0dbb2fce19ea7cd1cf21bc2f0727e8f74 Mon Sep 17 00:00:00 2001 From: lm-ydubler <92544319+lm-ydubler@users.noreply.github.com> Date: Mon, 6 Dec 2021 08:42:32 -0700 Subject: [PATCH 080/109] Update index-update.yaml --- .github/workflows/index-update.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/index-update.yaml b/.github/workflows/index-update.yaml index 9ce260a8..38fe171f 100644 --- a/.github/workflows/index-update.yaml +++ b/.github/workflows/index-update.yaml @@ -36,7 +36,7 @@ on: apt-cache-version: required: false type: string - default: "v22" + default: "v0" py-cache-version: required: false type: string From c0e256e0694e0faeaba9c1797f41a3e414b41df0 Mon Sep 17 00:00:00 2001 From: lm-ydubler <92544319+lm-ydubler@users.noreply.github.com> Date: Mon, 6 Dec 2021 08:47:30 -0700 Subject: [PATCH 081/109] Update index-update.yaml --- .github/workflows/index-update.yaml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/index-update.yaml b/.github/workflows/index-update.yaml index 38fe171f..41ad262b 100644 --- a/.github/workflows/index-update.yaml +++ b/.github/workflows/index-update.yaml @@ -36,7 +36,7 @@ on: apt-cache-version: required: false type: string - default: "v0" + default: "v23" py-cache-version: required: false type: string @@ -154,12 +154,12 @@ jobs: rm -rf ${repo_name} echo "DELETED clone of ${PACKS_ORG}/${repo_name}: missing pack.yaml" echo "${PACKS_ORG}/${repo_name}" >> ${GITHUB_WORKSPACE}/bad_pack_repos - elif [[ "${reponame}" == "test" ]]; then + elif [[ "${reponame}" = "test" ]]; then cd .. rm -rf ${repo_name} echo "DELETED clone of ${PACKS_ORG}/${repo_name}: pack is a utility pack and excluded from the index." echo "${PACKS_ORG}/${repo_name}" >> ${GITHUB_WORKSPACE}/bad_pack_repos - elif [[ "${repo_name}" == "test_content_version" ]]; then + elif [[ "${repo_name}" = "test_content_version" ]]; then cd .. rm -rf ${repo_name} echo "DELETED clone of ${PACKS_ORG}/${repo_name}: pack is a utility pack and excluded from the index." From 420d6164cf22acd8f72ab2339212712121df95db Mon Sep 17 00:00:00 2001 From: lm-ydubler <92544319+lm-ydubler@users.noreply.github.com> Date: Mon, 6 Dec 2021 08:51:14 -0700 Subject: [PATCH 082/109] Update index-update.yaml --- .github/workflows/index-update.yaml | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/.github/workflows/index-update.yaml b/.github/workflows/index-update.yaml index 41ad262b..3729ac95 100644 --- a/.github/workflows/index-update.yaml +++ b/.github/workflows/index-update.yaml @@ -154,12 +154,7 @@ jobs: rm -rf ${repo_name} echo "DELETED clone of ${PACKS_ORG}/${repo_name}: missing pack.yaml" echo "${PACKS_ORG}/${repo_name}" >> ${GITHUB_WORKSPACE}/bad_pack_repos - elif [[ "${reponame}" = "test" ]]; then - cd .. - rm -rf ${repo_name} - echo "DELETED clone of ${PACKS_ORG}/${repo_name}: pack is a utility pack and excluded from the index." - echo "${PACKS_ORG}/${repo_name}" >> ${GITHUB_WORKSPACE}/bad_pack_repos - elif [[ "${repo_name}" = "test_content_version" ]]; then + elif [[ "${reponame}" == "stackstorm-test" || "${reponame}" == "stackstorm-test_content_version" ]]; then cd .. rm -rf ${repo_name} echo "DELETED clone of ${PACKS_ORG}/${repo_name}: pack is a utility pack and excluded from the index." From 8bb83c81cc3eb0423a43c33d7e5fcd523a9af567 Mon Sep 17 00:00:00 2001 From: lm-ydubler <92544319+lm-ydubler@users.noreply.github.com> Date: Mon, 6 Dec 2021 08:58:50 -0700 Subject: [PATCH 083/109] Update index-update.yaml --- .github/workflows/index-update.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/index-update.yaml b/.github/workflows/index-update.yaml index 3729ac95..d5044977 100644 --- a/.github/workflows/index-update.yaml +++ b/.github/workflows/index-update.yaml @@ -154,7 +154,7 @@ jobs: rm -rf ${repo_name} echo "DELETED clone of ${PACKS_ORG}/${repo_name}: missing pack.yaml" echo "${PACKS_ORG}/${repo_name}" >> ${GITHUB_WORKSPACE}/bad_pack_repos - elif [[ "${reponame}" == "stackstorm-test" || "${reponame}" == "stackstorm-test_content_version" ]]; then + elif [[ "${repo_name}" == "stackstorm-test" || "${repo_name}" == "stackstorm-test-content-version" ]]; then cd .. rm -rf ${repo_name} echo "DELETED clone of ${PACKS_ORG}/${repo_name}: pack is a utility pack and excluded from the index." From b924908d1cfbd5f94328de54b9793123ba038bac Mon Sep 17 00:00:00 2001 From: lm-ydubler <92544319+lm-ydubler@users.noreply.github.com> Date: Mon, 6 Dec 2021 09:00:08 -0700 Subject: [PATCH 084/109] Update index-update.yaml --- .github/workflows/index-update.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/index-update.yaml b/.github/workflows/index-update.yaml index d5044977..689be627 100644 --- a/.github/workflows/index-update.yaml +++ b/.github/workflows/index-update.yaml @@ -36,7 +36,7 @@ on: apt-cache-version: required: false type: string - default: "v23" + default: "v24" py-cache-version: required: false type: string From 21eb5c029f6cd447ef553da663da987c1369abfe Mon Sep 17 00:00:00 2001 From: lm-ydubler <92544319+lm-ydubler@users.noreply.github.com> Date: Mon, 6 Dec 2021 09:01:39 -0700 Subject: [PATCH 085/109] Update index-update.yaml --- .github/workflows/index-update.yaml | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/.github/workflows/index-update.yaml b/.github/workflows/index-update.yaml index 689be627..e2581d27 100644 --- a/.github/workflows/index-update.yaml +++ b/.github/workflows/index-update.yaml @@ -36,7 +36,7 @@ on: apt-cache-version: required: false type: string - default: "v24" + default: "v25" py-cache-version: required: false type: string @@ -144,24 +144,21 @@ jobs: echo latestTag = $latestTag git checkout $latestTag -b latestTagBranch fi + cd .. if [[ -z "$latestTag" ]]; then - cd .. rm -rf ${repo_name} echo "DELETED clone of ${PACKS_ORG}/${repo_name}: pack's git repository has no tags" echo "${PACKS_ORG}/${repo_name}" >> ${GITHUB_WORKSPACE}/bad_pack_repos elif [[ ! -f "./pack.yaml" ]]; then - cd .. rm -rf ${repo_name} echo "DELETED clone of ${PACKS_ORG}/${repo_name}: missing pack.yaml" echo "${PACKS_ORG}/${repo_name}" >> ${GITHUB_WORKSPACE}/bad_pack_repos elif [[ "${repo_name}" == "stackstorm-test" || "${repo_name}" == "stackstorm-test-content-version" ]]; then - cd .. rm -rf ${repo_name} echo "DELETED clone of ${PACKS_ORG}/${repo_name}: pack is a utility pack and excluded from the index." echo "${PACKS_ORG}/${repo_name}" >> ${GITHUB_WORKSPACE}/bad_pack_repos else echo ${repo_name} is a valid pack. - cd .. fi echo "::endgroup::" done From 1c7069c0463ba0149bfe25234dff5051a4cc3900 Mon Sep 17 00:00:00 2001 From: lm-ydubler <92544319+lm-ydubler@users.noreply.github.com> Date: Mon, 6 Dec 2021 09:23:34 -0700 Subject: [PATCH 086/109] Update index-update.yaml --- .github/workflows/index-update.yaml | 32 ++++++++++++++++++++--------- 1 file changed, 22 insertions(+), 10 deletions(-) diff --git a/.github/workflows/index-update.yaml b/.github/workflows/index-update.yaml index e2581d27..9205800e 100644 --- a/.github/workflows/index-update.yaml +++ b/.github/workflows/index-update.yaml @@ -36,7 +36,7 @@ on: apt-cache-version: required: false type: string - default: "v25" + default: "v27" py-cache-version: required: false type: string @@ -133,7 +133,6 @@ jobs: cd ${PACKS_PATH} source ${TOOLS_DIR}/functions.sh for repo_name in $(_gh_list_repo_names ${PACKS_ORG} ${PACKS_PREFIX}); do - echo "::group::Clone ${PACKS_ORG}/${repo_name}" gh repo clone "${PACKS_ORG}/${repo_name}" # !TODO: checkout the latest tag. # !TODO: exclude packs without tags @@ -147,20 +146,33 @@ jobs: cd .. if [[ -z "$latestTag" ]]; then rm -rf ${repo_name} - echo "DELETED clone of ${PACKS_ORG}/${repo_name}: pack's git repository has no tags" - echo "${PACKS_ORG}/${repo_name}" >> ${GITHUB_WORKSPACE}/bad_pack_repos + outcome = "DELETED clone of ${PACKS_ORG}/${repo_name}: pack's git repository has no tags" + result = "FAILURE" + reason = "- missing git tags" elif [[ ! -f "./pack.yaml" ]]; then rm -rf ${repo_name} - echo "DELETED clone of ${PACKS_ORG}/${repo_name}: missing pack.yaml" - echo "${PACKS_ORG}/${repo_name}" >> ${GITHUB_WORKSPACE}/bad_pack_repos + result = "FAILURE" + reason = "- missing pack.yaml file" + outcome = "DELETED clone of ${PACKS_ORG}/${repo_name}: missing pack.yaml" elif [[ "${repo_name}" == "stackstorm-test" || "${repo_name}" == "stackstorm-test-content-version" ]]; then rm -rf ${repo_name} - echo "DELETED clone of ${PACKS_ORG}/${repo_name}: pack is a utility pack and excluded from the index." - echo "${PACKS_ORG}/${repo_name}" >> ${GITHUB_WORKSPACE}/bad_pack_repos + result = "FAILURE" + reason = "- pack is an excluded utility pack" + outcome = "DELETED clone of ${PACKS_ORG}/${repo_name}: pack is a utility pack and excluded from the index." else - echo ${repo_name} is a valid pack. + outcome = ${repo_name} is a valid pack. + result = "SUCCESS" fi - echo "::endgroup::" + + + if [[ "$result" == "SUCCESS" ]]; then + echo "::group::Clone ${PACKS_ORG}/${repo_name} : ${result}" + else + echo "::group::Clone ${PACKS_ORG}/${repo_name} : ${result} ${reason}" + echo "${PACKS_ORG}/${repo_name}" >> ${GITHUB_WORKSPACE}/bad_pack_repos + fi + echo $outcome + echo "::endgroup::" done # validate.py hard codes the pack repo prefix From b0772d796e23c36fa3ffdfca5063734afd0a5e94 Mon Sep 17 00:00:00 2001 From: lm-ydubler <92544319+lm-ydubler@users.noreply.github.com> Date: Mon, 6 Dec 2021 09:33:10 -0700 Subject: [PATCH 087/109] Update index-update.yaml --- .github/workflows/index-update.yaml | 31 ++++++++++------------------- 1 file changed, 10 insertions(+), 21 deletions(-) diff --git a/.github/workflows/index-update.yaml b/.github/workflows/index-update.yaml index 9205800e..f8f4890c 100644 --- a/.github/workflows/index-update.yaml +++ b/.github/workflows/index-update.yaml @@ -36,7 +36,7 @@ on: apt-cache-version: required: false type: string - default: "v27" + default: "v28" py-cache-version: required: false type: string @@ -133,6 +133,7 @@ jobs: cd ${PACKS_PATH} source ${TOOLS_DIR}/functions.sh for repo_name in $(_gh_list_repo_names ${PACKS_ORG} ${PACKS_PREFIX}); do + echo "::group::Clone ${PACKS_ORG}/${repo_name}" gh repo clone "${PACKS_ORG}/${repo_name}" # !TODO: checkout the latest tag. # !TODO: exclude packs without tags @@ -146,33 +147,21 @@ jobs: cd .. if [[ -z "$latestTag" ]]; then rm -rf ${repo_name} - outcome = "DELETED clone of ${PACKS_ORG}/${repo_name}: pack's git repository has no tags" - result = "FAILURE" - reason = "- missing git tags" + outcome="DELETED clone of ${PACKS_ORG}/${repo_name}: missing git tags" + echo "${PACKS_ORG}/${repo_name}" >> ${GITHUB_WORKSPACE}/bad_pack_repos elif [[ ! -f "./pack.yaml" ]]; then rm -rf ${repo_name} - result = "FAILURE" - reason = "- missing pack.yaml file" - outcome = "DELETED clone of ${PACKS_ORG}/${repo_name}: missing pack.yaml" + echo "DELETED clone of ${PACKS_ORG}/${repo_name}: missing pack.yaml" + echo "${PACKS_ORG}/${repo_name}" >> ${GITHUB_WORKSPACE}/bad_pack_repos elif [[ "${repo_name}" == "stackstorm-test" || "${repo_name}" == "stackstorm-test-content-version" ]]; then rm -rf ${repo_name} - result = "FAILURE" - reason = "- pack is an excluded utility pack" - outcome = "DELETED clone of ${PACKS_ORG}/${repo_name}: pack is a utility pack and excluded from the index." + echo "DELETED clone of ${PACKS_ORG}/${repo_name}: pack is a utility pack and excluded from the index" + echo "${PACKS_ORG}/${repo_name}" >> ${GITHUB_WORKSPACE}/bad_pack_repos else - outcome = ${repo_name} is a valid pack. result = "SUCCESS" + outcome= ${repo_name} is a valid pack! fi - - - if [[ "$result" == "SUCCESS" ]]; then - echo "::group::Clone ${PACKS_ORG}/${repo_name} : ${result}" - else - echo "::group::Clone ${PACKS_ORG}/${repo_name} : ${result} ${reason}" - echo "${PACKS_ORG}/${repo_name}" >> ${GITHUB_WORKSPACE}/bad_pack_repos - fi - echo $outcome - echo "::endgroup::" + echo "::endgroup::" done # validate.py hard codes the pack repo prefix From 96ad02417908d4b14ed28cd953c84d94c11bc2e3 Mon Sep 17 00:00:00 2001 From: lm-ydubler <92544319+lm-ydubler@users.noreply.github.com> Date: Mon, 6 Dec 2021 09:35:17 -0700 Subject: [PATCH 088/109] Update index-update.yaml --- .github/workflows/index-update.yaml | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/.github/workflows/index-update.yaml b/.github/workflows/index-update.yaml index f8f4890c..7e475928 100644 --- a/.github/workflows/index-update.yaml +++ b/.github/workflows/index-update.yaml @@ -36,7 +36,7 @@ on: apt-cache-version: required: false type: string - default: "v28" + default: "v29" py-cache-version: required: false type: string @@ -158,8 +158,7 @@ jobs: echo "DELETED clone of ${PACKS_ORG}/${repo_name}: pack is a utility pack and excluded from the index" echo "${PACKS_ORG}/${repo_name}" >> ${GITHUB_WORKSPACE}/bad_pack_repos else - result = "SUCCESS" - outcome= ${repo_name} is a valid pack! + echo "SUCCESS : ${repo_name} is a valid pack! fi echo "::endgroup::" done From 489068e2efff0f83607702702cdf302a7d2da5ed Mon Sep 17 00:00:00 2001 From: lm-ydubler <92544319+lm-ydubler@users.noreply.github.com> Date: Mon, 6 Dec 2021 09:35:56 -0700 Subject: [PATCH 089/109] Update index-update.yaml --- .github/workflows/index-update.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/index-update.yaml b/.github/workflows/index-update.yaml index 7e475928..9a5b5550 100644 --- a/.github/workflows/index-update.yaml +++ b/.github/workflows/index-update.yaml @@ -149,7 +149,7 @@ jobs: rm -rf ${repo_name} outcome="DELETED clone of ${PACKS_ORG}/${repo_name}: missing git tags" echo "${PACKS_ORG}/${repo_name}" >> ${GITHUB_WORKSPACE}/bad_pack_repos - elif [[ ! -f "./pack.yaml" ]]; then + elif [[ ! -f "./${repo_name}/pack.yaml" ]]; then rm -rf ${repo_name} echo "DELETED clone of ${PACKS_ORG}/${repo_name}: missing pack.yaml" echo "${PACKS_ORG}/${repo_name}" >> ${GITHUB_WORKSPACE}/bad_pack_repos From 7835220294c53f0f84c4424ec2feff28c25450ee Mon Sep 17 00:00:00 2001 From: lm-ydubler <92544319+lm-ydubler@users.noreply.github.com> Date: Mon, 6 Dec 2021 09:40:56 -0700 Subject: [PATCH 090/109] Update index-update.yaml --- .github/workflows/index-update.yaml | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/.github/workflows/index-update.yaml b/.github/workflows/index-update.yaml index 9a5b5550..0a216f14 100644 --- a/.github/workflows/index-update.yaml +++ b/.github/workflows/index-update.yaml @@ -36,7 +36,7 @@ on: apt-cache-version: required: false type: string - default: "v29" + default: "v30" py-cache-version: required: false type: string @@ -144,20 +144,23 @@ jobs: echo latestTag = $latestTag git checkout $latestTag -b latestTagBranch fi - cd .. if [[ -z "$latestTag" ]]; then + cd .. rm -rf ${repo_name} outcome="DELETED clone of ${PACKS_ORG}/${repo_name}: missing git tags" echo "${PACKS_ORG}/${repo_name}" >> ${GITHUB_WORKSPACE}/bad_pack_repos - elif [[ ! -f "./${repo_name}/pack.yaml" ]]; then + elif [[ ! -f "./pack.yaml" ]]; then + cd .. rm -rf ${repo_name} echo "DELETED clone of ${PACKS_ORG}/${repo_name}: missing pack.yaml" echo "${PACKS_ORG}/${repo_name}" >> ${GITHUB_WORKSPACE}/bad_pack_repos elif [[ "${repo_name}" == "stackstorm-test" || "${repo_name}" == "stackstorm-test-content-version" ]]; then + cd .. rm -rf ${repo_name} echo "DELETED clone of ${PACKS_ORG}/${repo_name}: pack is a utility pack and excluded from the index" echo "${PACKS_ORG}/${repo_name}" >> ${GITHUB_WORKSPACE}/bad_pack_repos else + cd .. echo "SUCCESS : ${repo_name} is a valid pack! fi echo "::endgroup::" From a9b302e7d7129cf3399607ac2c790aa4fb9432c5 Mon Sep 17 00:00:00 2001 From: lm-ydubler <92544319+lm-ydubler@users.noreply.github.com> Date: Mon, 6 Dec 2021 09:45:22 -0700 Subject: [PATCH 091/109] Update index-update.yaml --- .github/workflows/index-update.yaml | 17 +++++++++++------ 1 file changed, 11 insertions(+), 6 deletions(-) diff --git a/.github/workflows/index-update.yaml b/.github/workflows/index-update.yaml index 0a216f14..50087eff 100644 --- a/.github/workflows/index-update.yaml +++ b/.github/workflows/index-update.yaml @@ -36,7 +36,7 @@ on: apt-cache-version: required: false type: string - default: "v30" + default: "v31" py-cache-version: required: false type: string @@ -145,23 +145,28 @@ jobs: git checkout $latestTag -b latestTagBranch fi if [[ -z "$latestTag" ]]; then - cd .. + cd .. rm -rf ${repo_name} - outcome="DELETED clone of ${PACKS_ORG}/${repo_name}: missing git tags" + echo "DELETED clone of ${PACKS_ORG}/${repo_name}: pack's git repository has no tags" echo "${PACKS_ORG}/${repo_name}" >> ${GITHUB_WORKSPACE}/bad_pack_repos elif [[ ! -f "./pack.yaml" ]]; then cd .. rm -rf ${repo_name} echo "DELETED clone of ${PACKS_ORG}/${repo_name}: missing pack.yaml" echo "${PACKS_ORG}/${repo_name}" >> ${GITHUB_WORKSPACE}/bad_pack_repos - elif [[ "${repo_name}" == "stackstorm-test" || "${repo_name}" == "stackstorm-test-content-version" ]]; then + elif [[ "${reponame}" == "test" ]]; then + cd .. + rm -rf ${repo_name} + echo "DELETED clone of ${PACKS_ORG}/${repo_name}: pack is a utility pack and excluded from the index." + echo "${PACKS_ORG}/${repo_name}" >> ${GITHUB_WORKSPACE}/bad_pack_repos + elif [[ "${repo_name}" == "test_content_version" ]]; then cd .. rm -rf ${repo_name} - echo "DELETED clone of ${PACKS_ORG}/${repo_name}: pack is a utility pack and excluded from the index" + echo "DELETED clone of ${PACKS_ORG}/${repo_name}: pack is a utility pack and excluded from the index." echo "${PACKS_ORG}/${repo_name}" >> ${GITHUB_WORKSPACE}/bad_pack_repos else + echo ${repo_name} is a valid pack. cd .. - echo "SUCCESS : ${repo_name} is a valid pack! fi echo "::endgroup::" done From 10cf58b2cd1e4f23b3cc361fe2863714f566e76b Mon Sep 17 00:00:00 2001 From: lm-ydubler <92544319+lm-ydubler@users.noreply.github.com> Date: Mon, 6 Dec 2021 09:48:20 -0700 Subject: [PATCH 092/109] Update index-update.yaml --- .github/workflows/index-update.yaml | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/.github/workflows/index-update.yaml b/.github/workflows/index-update.yaml index 50087eff..301b9e29 100644 --- a/.github/workflows/index-update.yaml +++ b/.github/workflows/index-update.yaml @@ -147,19 +147,14 @@ jobs: if [[ -z "$latestTag" ]]; then cd .. rm -rf ${repo_name} - echo "DELETED clone of ${PACKS_ORG}/${repo_name}: pack's git repository has no tags" + echo "DELETED clone of ${PACKS_ORG}/${repo_name}: missing git tags" echo "${PACKS_ORG}/${repo_name}" >> ${GITHUB_WORKSPACE}/bad_pack_repos elif [[ ! -f "./pack.yaml" ]]; then cd .. rm -rf ${repo_name} echo "DELETED clone of ${PACKS_ORG}/${repo_name}: missing pack.yaml" echo "${PACKS_ORG}/${repo_name}" >> ${GITHUB_WORKSPACE}/bad_pack_repos - elif [[ "${reponame}" == "test" ]]; then - cd .. - rm -rf ${repo_name} - echo "DELETED clone of ${PACKS_ORG}/${repo_name}: pack is a utility pack and excluded from the index." - echo "${PACKS_ORG}/${repo_name}" >> ${GITHUB_WORKSPACE}/bad_pack_repos - elif [[ "${repo_name}" == "test_content_version" ]]; then + elif [[ "${reponame}" == "test" || "${repo_name}" == "test_content_version" ]]; then cd .. rm -rf ${repo_name} echo "DELETED clone of ${PACKS_ORG}/${repo_name}: pack is a utility pack and excluded from the index." From 6ac4c0c16816690ab46e52e2ac4a6ecc7ee76008 Mon Sep 17 00:00:00 2001 From: lm-ydubler <92544319+lm-ydubler@users.noreply.github.com> Date: Mon, 6 Dec 2021 09:50:31 -0700 Subject: [PATCH 093/109] Update index-update.yaml --- .github/workflows/index-update.yaml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/index-update.yaml b/.github/workflows/index-update.yaml index 301b9e29..e0b6fde8 100644 --- a/.github/workflows/index-update.yaml +++ b/.github/workflows/index-update.yaml @@ -36,7 +36,7 @@ on: apt-cache-version: required: false type: string - default: "v31" + default: "v32" py-cache-version: required: false type: string @@ -136,24 +136,24 @@ jobs: echo "::group::Clone ${PACKS_ORG}/${repo_name}" gh repo clone "${PACKS_ORG}/${repo_name}" # !TODO: checkout the latest tag. - # !TODO: exclude packs without tags - # !TODO: add index exclusion list to exclude utility packs like - # test, test_content_version cd ${repo_name} if latestTag=$(git describe --tags `git rev-list --tags --max-count=1`); then echo latestTag = $latestTag git checkout $latestTag -b latestTagBranch fi + # !TODO: exclude packs without tags if [[ -z "$latestTag" ]]; then cd .. rm -rf ${repo_name} echo "DELETED clone of ${PACKS_ORG}/${repo_name}: missing git tags" echo "${PACKS_ORG}/${repo_name}" >> ${GITHUB_WORKSPACE}/bad_pack_repos + # Exclude packs that don't have a pack.yaml file elif [[ ! -f "./pack.yaml" ]]; then cd .. rm -rf ${repo_name} echo "DELETED clone of ${PACKS_ORG}/${repo_name}: missing pack.yaml" echo "${PACKS_ORG}/${repo_name}" >> ${GITHUB_WORKSPACE}/bad_pack_repos + # !TODO: add index exclusion list to exclude utility packs like: test, test-content-version elif [[ "${reponame}" == "test" || "${repo_name}" == "test_content_version" ]]; then cd .. rm -rf ${repo_name} From 0e033aab0d038ac1e86422d61e08a2af7d23cc26 Mon Sep 17 00:00:00 2001 From: lm-ydubler <92544319+lm-ydubler@users.noreply.github.com> Date: Mon, 6 Dec 2021 10:00:27 -0700 Subject: [PATCH 094/109] Update index-update.yaml --- .github/workflows/index-update.yaml | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/.github/workflows/index-update.yaml b/.github/workflows/index-update.yaml index e0b6fde8..2b3cdeee 100644 --- a/.github/workflows/index-update.yaml +++ b/.github/workflows/index-update.yaml @@ -135,26 +135,22 @@ jobs: for repo_name in $(_gh_list_repo_names ${PACKS_ORG} ${PACKS_PREFIX}); do echo "::group::Clone ${PACKS_ORG}/${repo_name}" gh repo clone "${PACKS_ORG}/${repo_name}" - # !TODO: checkout the latest tag. cd ${repo_name} if latestTag=$(git describe --tags `git rev-list --tags --max-count=1`); then echo latestTag = $latestTag git checkout $latestTag -b latestTagBranch fi - # !TODO: exclude packs without tags if [[ -z "$latestTag" ]]; then cd .. rm -rf ${repo_name} echo "DELETED clone of ${PACKS_ORG}/${repo_name}: missing git tags" echo "${PACKS_ORG}/${repo_name}" >> ${GITHUB_WORKSPACE}/bad_pack_repos - # Exclude packs that don't have a pack.yaml file elif [[ ! -f "./pack.yaml" ]]; then cd .. rm -rf ${repo_name} echo "DELETED clone of ${PACKS_ORG}/${repo_name}: missing pack.yaml" echo "${PACKS_ORG}/${repo_name}" >> ${GITHUB_WORKSPACE}/bad_pack_repos - # !TODO: add index exclusion list to exclude utility packs like: test, test-content-version - elif [[ "${reponame}" == "test" || "${repo_name}" == "test_content_version" ]]; then + elif [[ "${repo_name}" == "stackstorm-test" || "${repo_name}" == "stackstorm-test-content-version" ]]; then cd .. rm -rf ${repo_name} echo "DELETED clone of ${PACKS_ORG}/${repo_name}: pack is a utility pack and excluded from the index." From d2975f6ccda016fba1bcd5c9dd1fd626b37820d2 Mon Sep 17 00:00:00 2001 From: lm-ydubler <92544319+lm-ydubler@users.noreply.github.com> Date: Mon, 6 Dec 2021 10:21:13 -0700 Subject: [PATCH 095/109] Update index-update.yaml --- .github/workflows/index-update.yaml | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/.github/workflows/index-update.yaml b/.github/workflows/index-update.yaml index 2b3cdeee..2b3ae42f 100644 --- a/.github/workflows/index-update.yaml +++ b/.github/workflows/index-update.yaml @@ -135,29 +135,24 @@ jobs: for repo_name in $(_gh_list_repo_names ${PACKS_ORG} ${PACKS_PREFIX}); do echo "::group::Clone ${PACKS_ORG}/${repo_name}" gh repo clone "${PACKS_ORG}/${repo_name}" - cd ${repo_name} if latestTag=$(git describe --tags `git rev-list --tags --max-count=1`); then echo latestTag = $latestTag - git checkout $latestTag -b latestTagBranch + git -C ${repo_name} checkout $latestTag -b latestTagBranch fi if [[ -z "$latestTag" ]]; then - cd .. rm -rf ${repo_name} echo "DELETED clone of ${PACKS_ORG}/${repo_name}: missing git tags" echo "${PACKS_ORG}/${repo_name}" >> ${GITHUB_WORKSPACE}/bad_pack_repos elif [[ ! -f "./pack.yaml" ]]; then - cd .. rm -rf ${repo_name} echo "DELETED clone of ${PACKS_ORG}/${repo_name}: missing pack.yaml" echo "${PACKS_ORG}/${repo_name}" >> ${GITHUB_WORKSPACE}/bad_pack_repos elif [[ "${repo_name}" == "stackstorm-test" || "${repo_name}" == "stackstorm-test-content-version" ]]; then - cd .. rm -rf ${repo_name} echo "DELETED clone of ${PACKS_ORG}/${repo_name}: pack is a utility pack and excluded from the index." echo "${PACKS_ORG}/${repo_name}" >> ${GITHUB_WORKSPACE}/bad_pack_repos else echo ${repo_name} is a valid pack. - cd .. fi echo "::endgroup::" done From 5b450f22adb99810bad158153f8b91fe3a9bcf0a Mon Sep 17 00:00:00 2001 From: lm-ydubler <92544319+lm-ydubler@users.noreply.github.com> Date: Mon, 6 Dec 2021 10:21:26 -0700 Subject: [PATCH 096/109] Update index-update.yaml --- .github/workflows/index-update.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/index-update.yaml b/.github/workflows/index-update.yaml index 2b3ae42f..2063f6b6 100644 --- a/.github/workflows/index-update.yaml +++ b/.github/workflows/index-update.yaml @@ -36,7 +36,7 @@ on: apt-cache-version: required: false type: string - default: "v32" + default: "v33" py-cache-version: required: false type: string From ae7df0b7a16d75a064563487da76e910c981d617 Mon Sep 17 00:00:00 2001 From: lm-ydubler <92544319+lm-ydubler@users.noreply.github.com> Date: Mon, 6 Dec 2021 10:24:39 -0700 Subject: [PATCH 097/109] Update index-update.yaml --- .github/workflows/index-update.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/index-update.yaml b/.github/workflows/index-update.yaml index 2063f6b6..2f8eda8f 100644 --- a/.github/workflows/index-update.yaml +++ b/.github/workflows/index-update.yaml @@ -36,7 +36,7 @@ on: apt-cache-version: required: false type: string - default: "v33" + default: "v34" py-cache-version: required: false type: string @@ -137,7 +137,7 @@ jobs: gh repo clone "${PACKS_ORG}/${repo_name}" if latestTag=$(git describe --tags `git rev-list --tags --max-count=1`); then echo latestTag = $latestTag - git -C ${repo_name} checkout $latestTag -b latestTagBranch + git -C "${repo_name}" checkout $latestTag -b latestTagBranch fi if [[ -z "$latestTag" ]]; then rm -rf ${repo_name} From c6697f9024005a52021a323d3c2d005b7a8ff676 Mon Sep 17 00:00:00 2001 From: lm-ydubler <92544319+lm-ydubler@users.noreply.github.com> Date: Mon, 6 Dec 2021 10:27:06 -0700 Subject: [PATCH 098/109] Update index-update.yaml --- .github/workflows/index-update.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/index-update.yaml b/.github/workflows/index-update.yaml index 2f8eda8f..fe022ce4 100644 --- a/.github/workflows/index-update.yaml +++ b/.github/workflows/index-update.yaml @@ -36,7 +36,7 @@ on: apt-cache-version: required: false type: string - default: "v34" + default: "v35" py-cache-version: required: false type: string @@ -137,7 +137,7 @@ jobs: gh repo clone "${PACKS_ORG}/${repo_name}" if latestTag=$(git describe --tags `git rev-list --tags --max-count=1`); then echo latestTag = $latestTag - git -C "${repo_name}" checkout $latestTag -b latestTagBranch + git -C "${PACKS_ORG}/${repo_name}" checkout $latestTag -b latestTagBranch fi if [[ -z "$latestTag" ]]; then rm -rf ${repo_name} From 821aecef67c76ecc7598e175f42f10634e67cd9b Mon Sep 17 00:00:00 2001 From: lm-ydubler <92544319+lm-ydubler@users.noreply.github.com> Date: Mon, 6 Dec 2021 10:30:48 -0700 Subject: [PATCH 099/109] Update index-update.yaml --- .github/workflows/index-update.yaml | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/.github/workflows/index-update.yaml b/.github/workflows/index-update.yaml index fe022ce4..0ed82185 100644 --- a/.github/workflows/index-update.yaml +++ b/.github/workflows/index-update.yaml @@ -36,7 +36,7 @@ on: apt-cache-version: required: false type: string - default: "v35" + default: "v36" py-cache-version: required: false type: string @@ -135,23 +135,28 @@ jobs: for repo_name in $(_gh_list_repo_names ${PACKS_ORG} ${PACKS_PREFIX}); do echo "::group::Clone ${PACKS_ORG}/${repo_name}" gh repo clone "${PACKS_ORG}/${repo_name}" + cd ${repo_name} if latestTag=$(git describe --tags `git rev-list --tags --max-count=1`); then echo latestTag = $latestTag - git -C "${PACKS_ORG}/${repo_name}" checkout $latestTag -b latestTagBranch + git checkout $latestTag -b latestTagBranch fi if [[ -z "$latestTag" ]]; then + cd .. rm -rf ${repo_name} echo "DELETED clone of ${PACKS_ORG}/${repo_name}: missing git tags" echo "${PACKS_ORG}/${repo_name}" >> ${GITHUB_WORKSPACE}/bad_pack_repos elif [[ ! -f "./pack.yaml" ]]; then + cd .. rm -rf ${repo_name} echo "DELETED clone of ${PACKS_ORG}/${repo_name}: missing pack.yaml" echo "${PACKS_ORG}/${repo_name}" >> ${GITHUB_WORKSPACE}/bad_pack_repos elif [[ "${repo_name}" == "stackstorm-test" || "${repo_name}" == "stackstorm-test-content-version" ]]; then + cd .. rm -rf ${repo_name} echo "DELETED clone of ${PACKS_ORG}/${repo_name}: pack is a utility pack and excluded from the index." echo "${PACKS_ORG}/${repo_name}" >> ${GITHUB_WORKSPACE}/bad_pack_repos else + cd .. echo ${repo_name} is a valid pack. fi echo "::endgroup::" From 833ee8e56dc239973b73c94f2cd91c12afb670b8 Mon Sep 17 00:00:00 2001 From: lm-ydubler <92544319+lm-ydubler@users.noreply.github.com> Date: Mon, 6 Dec 2021 10:52:39 -0700 Subject: [PATCH 100/109] Update index-update.yaml --- .github/workflows/index-update.yaml | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/.github/workflows/index-update.yaml b/.github/workflows/index-update.yaml index 0ed82185..9b1ddf31 100644 --- a/.github/workflows/index-update.yaml +++ b/.github/workflows/index-update.yaml @@ -36,7 +36,7 @@ on: apt-cache-version: required: false type: string - default: "v36" + default: "v37" py-cache-version: required: false type: string @@ -132,31 +132,32 @@ jobs: mkdir -p ${PACKS_PATH} cd ${PACKS_PATH} source ${TOOLS_DIR}/functions.sh + EXCLUDE_PACKS=$(grep -v '^#' "${INDEX_DIR}/v1/exclude_packs.txt" | xargs echo -n) for repo_name in $(_gh_list_repo_names ${PACKS_ORG} ${PACKS_PREFIX}); do echo "::group::Clone ${PACKS_ORG}/${repo_name}" gh repo clone "${PACKS_ORG}/${repo_name}" - cd ${repo_name} - if latestTag=$(git describe --tags `git rev-list --tags --max-count=1`); then + if latestTag=$(git -C ${repo_name} describe --tags `git rev-list --tags --max-count=1`); then echo latestTag = $latestTag - git checkout $latestTag -b latestTagBranch + git -C ${repo_name} checkout $latestTag -b latestTagBranch fi if [[ -z "$latestTag" ]]; then - cd .. rm -rf ${repo_name} echo "DELETED clone of ${PACKS_ORG}/${repo_name}: missing git tags" echo "${PACKS_ORG}/${repo_name}" >> ${GITHUB_WORKSPACE}/bad_pack_repos elif [[ ! -f "./pack.yaml" ]]; then - cd .. rm -rf ${repo_name} echo "DELETED clone of ${PACKS_ORG}/${repo_name}: missing pack.yaml" echo "${PACKS_ORG}/${repo_name}" >> ${GITHUB_WORKSPACE}/bad_pack_repos elif [[ "${repo_name}" == "stackstorm-test" || "${repo_name}" == "stackstorm-test-content-version" ]]; then - cd .. rm -rf ${repo_name} echo "DELETED clone of ${PACKS_ORG}/${repo_name}: pack is a utility pack and excluded from the index." echo "${PACKS_ORG}/${repo_name}" >> ${GITHUB_WORKSPACE}/bad_pack_repos else - cd .. + elif [[ "${repo_name}" =~ " ${EXCLUDE_PACKS} " ]]; then + rm -rf ${repo_name} + echo "DELETED clone of ${PACKS_ORG}/${repo_name}: pack is a utility pack and excluded from the index." + echo "${PACKS_ORG}/${repo_name}" >> ${GITHUB_WORKSPACE}/bad_pack_repos + else echo ${repo_name} is a valid pack. fi echo "::endgroup::" From fea142ec015272cbfec677da0bfce4d453a2d291 Mon Sep 17 00:00:00 2001 From: lm-ydubler <92544319+lm-ydubler@users.noreply.github.com> Date: Mon, 6 Dec 2021 10:57:45 -0700 Subject: [PATCH 101/109] Update index-update.yaml --- .github/workflows/index-update.yaml | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/.github/workflows/index-update.yaml b/.github/workflows/index-update.yaml index 9b1ddf31..5faf9527 100644 --- a/.github/workflows/index-update.yaml +++ b/.github/workflows/index-update.yaml @@ -36,7 +36,7 @@ on: apt-cache-version: required: false type: string - default: "v37" + default: "v38" py-cache-version: required: false type: string @@ -136,7 +136,7 @@ jobs: for repo_name in $(_gh_list_repo_names ${PACKS_ORG} ${PACKS_PREFIX}); do echo "::group::Clone ${PACKS_ORG}/${repo_name}" gh repo clone "${PACKS_ORG}/${repo_name}" - if latestTag=$(git -C ${repo_name} describe --tags `git rev-list --tags --max-count=1`); then + if latestTag=$(git -C ${repo_name} describe --tags `git -C ${repo_name} rev-list --tags --max-count=1`); then echo latestTag = $latestTag git -C ${repo_name} checkout $latestTag -b latestTagBranch fi @@ -148,14 +148,14 @@ jobs: rm -rf ${repo_name} echo "DELETED clone of ${PACKS_ORG}/${repo_name}: missing pack.yaml" echo "${PACKS_ORG}/${repo_name}" >> ${GITHUB_WORKSPACE}/bad_pack_repos - elif [[ "${repo_name}" == "stackstorm-test" || "${repo_name}" == "stackstorm-test-content-version" ]]; then + # elif [[ "${repo_name#stackstorm-}" == "test" || "${repo_name#stackstorm-}" == "test-content-version" ]]; then + # rm -rf ${repo_name} + # echo "DELETED clone of ${PACKS_ORG}/${repo_name}: pack is a utility pack and excluded from the index." + # echo "${PACKS_ORG}/${repo_name}" >> ${GITHUB_WORKSPACE}/bad_pack_repos + # else + elif [[ "${repo_name#stackstorm-}" =~ "${EXCLUDE_PACKS}" ]]; then rm -rf ${repo_name} - echo "DELETED clone of ${PACKS_ORG}/${repo_name}: pack is a utility pack and excluded from the index." - echo "${PACKS_ORG}/${repo_name}" >> ${GITHUB_WORKSPACE}/bad_pack_repos - else - elif [[ "${repo_name}" =~ " ${EXCLUDE_PACKS} " ]]; then - rm -rf ${repo_name} - echo "DELETED clone of ${PACKS_ORG}/${repo_name}: pack is a utility pack and excluded from the index." + echo "DELETED clone of ${PACKS_ORG}/${repo_name}: pack exists in the exclude_packs.txt file" echo "${PACKS_ORG}/${repo_name}" >> ${GITHUB_WORKSPACE}/bad_pack_repos else echo ${repo_name} is a valid pack. From d0b8635a2723b858d1b57aabe6399b0b2ec4b300 Mon Sep 17 00:00:00 2001 From: lm-ydubler <92544319+lm-ydubler@users.noreply.github.com> Date: Mon, 6 Dec 2021 11:03:03 -0700 Subject: [PATCH 102/109] Update index-update.yaml --- .github/workflows/index-update.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/index-update.yaml b/.github/workflows/index-update.yaml index 5faf9527..43432281 100644 --- a/.github/workflows/index-update.yaml +++ b/.github/workflows/index-update.yaml @@ -144,7 +144,7 @@ jobs: rm -rf ${repo_name} echo "DELETED clone of ${PACKS_ORG}/${repo_name}: missing git tags" echo "${PACKS_ORG}/${repo_name}" >> ${GITHUB_WORKSPACE}/bad_pack_repos - elif [[ ! -f "./pack.yaml" ]]; then + elif [[ ! -f "./${repo_name}/pack.yaml" ]]; then rm -rf ${repo_name} echo "DELETED clone of ${PACKS_ORG}/${repo_name}: missing pack.yaml" echo "${PACKS_ORG}/${repo_name}" >> ${GITHUB_WORKSPACE}/bad_pack_repos From 9df33d8eca26394a362ffd79b17267f89b17743f Mon Sep 17 00:00:00 2001 From: lm-ydubler <92544319+lm-ydubler@users.noreply.github.com> Date: Mon, 6 Dec 2021 11:08:40 -0700 Subject: [PATCH 103/109] Update index-update.yaml --- .github/workflows/index-update.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/index-update.yaml b/.github/workflows/index-update.yaml index 43432281..6d73d00b 100644 --- a/.github/workflows/index-update.yaml +++ b/.github/workflows/index-update.yaml @@ -153,7 +153,7 @@ jobs: # echo "DELETED clone of ${PACKS_ORG}/${repo_name}: pack is a utility pack and excluded from the index." # echo "${PACKS_ORG}/${repo_name}" >> ${GITHUB_WORKSPACE}/bad_pack_repos # else - elif [[ "${repo_name#stackstorm-}" =~ "${EXCLUDE_PACKS}" ]]; then + elif [[ " ${repo_name#stackstorm-} " =~ " ${EXCLUDE_PACKS} " ]]; then rm -rf ${repo_name} echo "DELETED clone of ${PACKS_ORG}/${repo_name}: pack exists in the exclude_packs.txt file" echo "${PACKS_ORG}/${repo_name}" >> ${GITHUB_WORKSPACE}/bad_pack_repos From e022357ce98eac88ed41feb6052586dfa85d7441 Mon Sep 17 00:00:00 2001 From: lm-ydubler <92544319+lm-ydubler@users.noreply.github.com> Date: Mon, 6 Dec 2021 11:09:30 -0700 Subject: [PATCH 104/109] Update index-update.yaml --- .github/workflows/index-update.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/index-update.yaml b/.github/workflows/index-update.yaml index 6d73d00b..8b16f2c9 100644 --- a/.github/workflows/index-update.yaml +++ b/.github/workflows/index-update.yaml @@ -36,7 +36,7 @@ on: apt-cache-version: required: false type: string - default: "v38" + default: "v39" py-cache-version: required: false type: string From bdc9c64aaedfebbe0ef444b25f0172960301686d Mon Sep 17 00:00:00 2001 From: lm-ydubler <92544319+lm-ydubler@users.noreply.github.com> Date: Mon, 6 Dec 2021 11:23:28 -0700 Subject: [PATCH 105/109] Update index-update.yaml --- .github/workflows/index-update.yaml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/index-update.yaml b/.github/workflows/index-update.yaml index 8b16f2c9..62fce4f1 100644 --- a/.github/workflows/index-update.yaml +++ b/.github/workflows/index-update.yaml @@ -36,7 +36,7 @@ on: apt-cache-version: required: false type: string - default: "v39" + default: "v40" py-cache-version: required: false type: string @@ -133,6 +133,7 @@ jobs: cd ${PACKS_PATH} source ${TOOLS_DIR}/functions.sh EXCLUDE_PACKS=$(grep -v '^#' "${INDEX_DIR}/v1/exclude_packs.txt" | xargs echo -n) + echo -e "\nEXCLUDE_PACKS=$EXCLUDE_PACKS\n" for repo_name in $(_gh_list_repo_names ${PACKS_ORG} ${PACKS_PREFIX}); do echo "::group::Clone ${PACKS_ORG}/${repo_name}" gh repo clone "${PACKS_ORG}/${repo_name}" From 90482209dbc0029faa40e51eb81d09d60b6d41ad Mon Sep 17 00:00:00 2001 From: lm-ydubler <92544319+lm-ydubler@users.noreply.github.com> Date: Mon, 6 Dec 2021 11:28:40 -0700 Subject: [PATCH 106/109] Update index-update.yaml --- .github/workflows/index-update.yaml | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/.github/workflows/index-update.yaml b/.github/workflows/index-update.yaml index 62fce4f1..dbc379d8 100644 --- a/.github/workflows/index-update.yaml +++ b/.github/workflows/index-update.yaml @@ -36,7 +36,7 @@ on: apt-cache-version: required: false type: string - default: "v40" + default: "v41" py-cache-version: required: false type: string @@ -137,6 +137,7 @@ jobs: for repo_name in $(_gh_list_repo_names ${PACKS_ORG} ${PACKS_PREFIX}); do echo "::group::Clone ${PACKS_ORG}/${repo_name}" gh repo clone "${PACKS_ORG}/${repo_name}" + echo pack_name#stackstorm- = ${pack_name#stackstorm-} if latestTag=$(git -C ${repo_name} describe --tags `git -C ${repo_name} rev-list --tags --max-count=1`); then echo latestTag = $latestTag git -C ${repo_name} checkout $latestTag -b latestTagBranch @@ -149,14 +150,9 @@ jobs: rm -rf ${repo_name} echo "DELETED clone of ${PACKS_ORG}/${repo_name}: missing pack.yaml" echo "${PACKS_ORG}/${repo_name}" >> ${GITHUB_WORKSPACE}/bad_pack_repos - # elif [[ "${repo_name#stackstorm-}" == "test" || "${repo_name#stackstorm-}" == "test-content-version" ]]; then - # rm -rf ${repo_name} - # echo "DELETED clone of ${PACKS_ORG}/${repo_name}: pack is a utility pack and excluded from the index." - # echo "${PACKS_ORG}/${repo_name}" >> ${GITHUB_WORKSPACE}/bad_pack_repos - # else elif [[ " ${repo_name#stackstorm-} " =~ " ${EXCLUDE_PACKS} " ]]; then rm -rf ${repo_name} - echo "DELETED clone of ${PACKS_ORG}/${repo_name}: pack exists in the exclude_packs.txt file" + echo "DELETED clone of ${PACKS_ORG}/${repo_name}: pack has been manually excluded" echo "${PACKS_ORG}/${repo_name}" >> ${GITHUB_WORKSPACE}/bad_pack_repos else echo ${repo_name} is a valid pack. From 70a239921e38a2b721afd211fa46a83a2d60b33d Mon Sep 17 00:00:00 2001 From: lm-ydubler <92544319+lm-ydubler@users.noreply.github.com> Date: Mon, 6 Dec 2021 11:31:25 -0700 Subject: [PATCH 107/109] Update index-update.yaml --- .github/workflows/index-update.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/index-update.yaml b/.github/workflows/index-update.yaml index dbc379d8..c24150f9 100644 --- a/.github/workflows/index-update.yaml +++ b/.github/workflows/index-update.yaml @@ -137,7 +137,7 @@ jobs: for repo_name in $(_gh_list_repo_names ${PACKS_ORG} ${PACKS_PREFIX}); do echo "::group::Clone ${PACKS_ORG}/${repo_name}" gh repo clone "${PACKS_ORG}/${repo_name}" - echo pack_name#stackstorm- = ${pack_name#stackstorm-} + echo repo_name#stackstorm- = ${repo_name#stackstorm-} if latestTag=$(git -C ${repo_name} describe --tags `git -C ${repo_name} rev-list --tags --max-count=1`); then echo latestTag = $latestTag git -C ${repo_name} checkout $latestTag -b latestTagBranch From 115b4a4450d067cc0b43ba73e8090b7b8be1c0e3 Mon Sep 17 00:00:00 2001 From: lm-ydubler <92544319+lm-ydubler@users.noreply.github.com> Date: Mon, 6 Dec 2021 11:41:45 -0700 Subject: [PATCH 108/109] Update index-update.yaml --- .github/workflows/index-update.yaml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/index-update.yaml b/.github/workflows/index-update.yaml index c24150f9..ec4a3bc5 100644 --- a/.github/workflows/index-update.yaml +++ b/.github/workflows/index-update.yaml @@ -36,7 +36,7 @@ on: apt-cache-version: required: false type: string - default: "v41" + default: "v42" py-cache-version: required: false type: string @@ -138,6 +138,7 @@ jobs: echo "::group::Clone ${PACKS_ORG}/${repo_name}" gh repo clone "${PACKS_ORG}/${repo_name}" echo repo_name#stackstorm- = ${repo_name#stackstorm-} + echo EXCLUDE_PACKS w/ spaces= ${EXCLUDE_PACKS} " if latestTag=$(git -C ${repo_name} describe --tags `git -C ${repo_name} rev-list --tags --max-count=1`); then echo latestTag = $latestTag git -C ${repo_name} checkout $latestTag -b latestTagBranch @@ -150,7 +151,7 @@ jobs: rm -rf ${repo_name} echo "DELETED clone of ${PACKS_ORG}/${repo_name}: missing pack.yaml" echo "${PACKS_ORG}/${repo_name}" >> ${GITHUB_WORKSPACE}/bad_pack_repos - elif [[ " ${repo_name#stackstorm-} " =~ " ${EXCLUDE_PACKS} " ]]; then + elif [[ " ${EXCLUDE_PACKS} " =~ " ${repo_name#stackstorm-} " ]]; then rm -rf ${repo_name} echo "DELETED clone of ${PACKS_ORG}/${repo_name}: pack has been manually excluded" echo "${PACKS_ORG}/${repo_name}" >> ${GITHUB_WORKSPACE}/bad_pack_repos From d2f36c29de1eaf6f4c8b1ac15c2f69d146baae96 Mon Sep 17 00:00:00 2001 From: lm-ydubler <92544319+lm-ydubler@users.noreply.github.com> Date: Mon, 6 Dec 2021 11:42:19 -0700 Subject: [PATCH 109/109] Update index-update.yaml --- .github/workflows/index-update.yaml | 3 --- 1 file changed, 3 deletions(-) diff --git a/.github/workflows/index-update.yaml b/.github/workflows/index-update.yaml index ec4a3bc5..dc5efaba 100644 --- a/.github/workflows/index-update.yaml +++ b/.github/workflows/index-update.yaml @@ -133,12 +133,9 @@ jobs: cd ${PACKS_PATH} source ${TOOLS_DIR}/functions.sh EXCLUDE_PACKS=$(grep -v '^#' "${INDEX_DIR}/v1/exclude_packs.txt" | xargs echo -n) - echo -e "\nEXCLUDE_PACKS=$EXCLUDE_PACKS\n" for repo_name in $(_gh_list_repo_names ${PACKS_ORG} ${PACKS_PREFIX}); do echo "::group::Clone ${PACKS_ORG}/${repo_name}" gh repo clone "${PACKS_ORG}/${repo_name}" - echo repo_name#stackstorm- = ${repo_name#stackstorm-} - echo EXCLUDE_PACKS w/ spaces= ${EXCLUDE_PACKS} " if latestTag=$(git -C ${repo_name} describe --tags `git -C ${repo_name} rev-list --tags --max-count=1`); then echo latestTag = $latestTag git -C ${repo_name} checkout $latestTag -b latestTagBranch