Skip to content

Commit

Permalink
Added lillywallawitsch-Wondernest.Express as a submodule by github-ac…
Browse files Browse the repository at this point in the history
…tions
  • Loading branch information
github-actions authored and alkaline-0 committed Apr 25, 2024
1 parent 5c458ce commit 526f4f3
Showing 1 changed file with 12 additions and 10 deletions.
22 changes: 12 additions & 10 deletions .github/workflows/create-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,6 @@ on:

jobs:
create_submodule:
outputs:
status: ${{ steps.create_student_submodule.outcome }}
permissions:
contents: "write"

Expand Down Expand Up @@ -44,10 +42,11 @@ jobs:
echo "Submodule already exists, terminating github actions"
fi
cd ./submissions-${year}/${user_name}-${repo_name}/
outputs:
year: ${year}
user_name: ${user_name}
repo_name: ${repo_name}
outputs:
status: ${{ steps.create_student_submodule.outcome }}
year: ${year}
user_name: ${user_name}
repo_name: ${repo_name}

create_docker_image:
needs: create_submodule
Expand All @@ -69,14 +68,17 @@ jobs:
run: pip install -U github-dependents-info

- name: Get submodule's dependencies in JSON file
run: github-dependents-info --repo ${needs.create_submodule.outputs..user_name}/${needs.create_submodule.outputs..repo_name} --json
run: github-dependents-info --repo ${needs.create_submodule.outputs.user_name}/${needs.create_submodule.outputs.repo_name} --json
run: github-dependents-info --repo ${needs.create_submodule.outputs.user_name}/${needs.create_submodule.outputs.repo_name} --json

- name: Check if the JSON file was created successfully
run: |
if [[ -f ${needs.create_submodule.outputs..user_name}/${needs.create_submodule.outputs..repo_name}.json ]]; then
echo "${needs.create_submodule.outputs..user_name}/${needs.create_submodule.outputs..repo_name}.json exists!"
if [[ -f ${needs.create_submodule.outputs.user_name}/${needs.create_submodule.outputs.repo_name}.json ]]; then
echo "${needs.create_submodule.outputs.user_name}/${needs.create_submodule.outputs.repo_name}.json exists!"
if [[ -f ${needs.create_submodule.outputs.user_name}/${needs.create_submodule.outputs.repo_name}.json ]]; then
echo "${needs.create_submodule.outputs.user_name}/${needs.create_submodule.outputs.repo_name}.json exists!"
else
echo "${needs.create_submodule.outputs..user_name}/${needs.create_submodule.outputs..repo_name}.json does not exist!"
echo "${needs.create_submodule.outputs.user_name}/${needs.create_submodule.outputs.repo_name}.json does not exist!"
fi
# need to add export DOCKER_BUILDKIT=1 before building python docker image

0 comments on commit 526f4f3

Please sign in to comment.