flora is a fast and secure runtime that lets you write discord bots for your servers, with a rich TypeScript SDK, without worrying about running infrastructure. [mirror]
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

fix(ci): materialize submodule git dirs safely

Session-Id: d602d17a-576d-4565-82bf-d2e419baace1

+19 -8
+19 -8
.github/workflows/publish-runtime.yml
··· 41 41 42 42 - name: Materialize submodule git dirs for Docker 43 43 run: | 44 - git submodule foreach --recursive ' 45 - if [ -f .git ]; then 46 - gitdir=$(git rev-parse --git-dir) 47 - rm .git 48 - mkdir .git 49 - cp -a "$gitdir"/. .git/ 50 - git --git-dir=.git config --unset core.worktree || true 44 + mapfile -t submodule_entries < <( 45 + git submodule foreach --recursive --quiet \ 46 + 'printf "%s\t%s\n" "$displaypath" "$(git rev-parse --absolute-git-dir)"' 47 + ) 48 + 49 + for submodule_entry in "${submodule_entries[@]}"; do 50 + submodule_path="${submodule_entry%%$'\t'*}" 51 + submodule_gitdir="${submodule_entry#*$'\t'}" 52 + git_metadata_path="$submodule_path/.git" 53 + 54 + if [ -f "$git_metadata_path" ]; then 55 + rm "$git_metadata_path" 56 + mkdir "$git_metadata_path" 57 + cp -a "$submodule_gitdir"/. "$git_metadata_path/" 58 + fi 59 + 60 + if [ -f "$git_metadata_path/config" ]; then 61 + git config --file "$git_metadata_path/config" --unset core.worktree || true 51 62 fi 52 - ' 63 + done 53 64 54 65 - name: Build and push runtime image 55 66 uses: docker/build-push-action@v6