Skip to content

Commit

Permalink
Update Synchronizing.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
guyrenny authored May 22, 2024
1 parent f858f22 commit 294bd5d
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions .github/workflows/Synchronizing.yml
Original file line number Diff line number Diff line change
Expand Up @@ -164,20 +164,22 @@ jobs:
- name: Commit and push chage files
run: |
echo "the file"
ls
ls | grep change_file_list
echo "end of file"
for file in change_file_list_*; do
line="${file#change_file_list_}"
echo "The integration is:"
echo $line
if [[ -d "aws-integrations/lambda-integrations/$line/" ]]; then
if [[ -d "aws-integrations/lambda-integrations/$line" ]]; then
echo " in the if"
mv template-readme-directory-${line}/${line}_README aws-integrations/lambda-integrations/$line/README.md
mv template-readme-directory-${line}/${line}_template.yaml aws-integrations/lambda-integrations/$line/template.yaml
if [ -f "template-readme-directory-${line}/${line}_CHANGELOG.md" ]; then
mv template-readme-directory-${line}/${line}_CHANGELOG.md aws-integrations/lambda-integrations/$line/CHANGELOG.md
fi
else
mkdir aws-integrations/lambda-integrations/$line/
echo "in the else condition"
mkdir aws-integrations/lambda-integrations/$line
mv template-readme-directory-${line}/${line}_README aws-integrations/lambda-integrations/$line/README.md
mv template-readme-directory-${line}/${line}_template.yaml aws-integrations/lambda-integrations/$line/template.yaml
if [ -f "template-readme-directory-${line}/${line}_CHANGELOG.md" ]; then
Expand Down

0 comments on commit 294bd5d

Please sign in to comment.