Skip to content

Commit

Permalink
v3.7.5
Browse files Browse the repository at this point in the history
=====================================================================

--- New Features -------------------------

- adding variables of the format `^SCWRYPTS_GROUP_LOADERS__[a-z_]\+=`
  will let those files be explicitly sourced during run (this should
  allow custom group usage in CI)
  • Loading branch information
wrynegade committed Nov 13, 2023
1 parent 3ca4fe0 commit 9178002
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 2 deletions.
3 changes: 1 addition & 2 deletions action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,7 @@ runs:
--name scwrypts/virtualenv/update-all \
--group scwrypts \
--type zsh \
;
#> $HOME/.scwrypts.virtualenv.log 2>&1
> $HOME/.scwrypts.virtualenv.log 2>&1
echo "CI_SCWRYPTS_READY=1" >> $GITHUB_ENV
exit 0
Expand Down
1 change: 1 addition & 0 deletions run
Original file line number Diff line number Diff line change
Expand Up @@ -218,6 +218,7 @@ __RUN() {

[[ $ENV_REQUIRED -eq 1 ]] && {
[ ! $ENV_NAME ] && ENV_NAME=$(SCWRYPTS__SELECT_ENV)

for GROUP in ${SCWRYPTS_GROUPS[@]}
do
local ENV_FILE=$(SCWRYPTS__GET_ENV_FILE "$ENV_NAME" "$GROUP")
Expand Down
7 changes: 7 additions & 0 deletions zsh/lib/config.zsh
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,13 @@ do
}
done

#####################################################################

for GROUP_LOADER in $(env | sed -n 's/^SCWRYPTS_GROUP_LOADER__[a-z_]\+=//p')
do
[ -f "$GROUP_LOADER" ] && source "$GROUP_LOADER"
done

#####################################################################
[ $NO_EXPORT_CONFIG ] || __SCWRYPT=1 # arbitrary; indicates currently inside a scwrypt
true

0 comments on commit 9178002

Please sign in to comment.