Skip to content

Commit 2828f1d

Browse files
add Repos Son
1 parent f8bbefc commit 2828f1d

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

.github/workflows/bucket-upload.yaml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,23 @@ jobs:
3737
# Garantir permissões de execução
3838
chmod +x dist/2ms
3939
40+
41+
- name: Load Repos from JSON
42+
run: |
43+
# Baixar o arquivo repos.json diretamente
44+
curl -o /tmp/repos.json https://raw.githubusercontent.com/cx-miguel-neiva/2ms-github-action/main/repos.json
45+
46+
# Extrair os repositórios e criar uma string separada por vírgulas
47+
REPOS_LIST=$(jq -r '.projects[]' /tmp/repos.json)
48+
49+
# Exibir o conteúdo de REPOS_LIST para depuração
50+
echo "Repos List: $REPOS_LIST"
51+
52+
# Converter a lista de repositórios para uma string separada por vírgulas e passá-la para o GITHUB_ENV
53+
REPOS_LIST_CSV=$(echo $REPOS_LIST | tr '\n' ',')
54+
echo "repos=$REPOS_LIST_CSV" >> $GITHUB_ENV
55+
56+
4057
- name: Run 2ms Scan for each repo
4158
run: |
4259
mkdir -p $GITHUB_WORKSPACE/results

0 commit comments

Comments
 (0)