@@ -202,40 +202,41 @@ EOL
202202 update README.md ' GitHub Action: add badge to README.md'
203203 fi
204204
205- # encrypt key/value pairs in variables file
206- if [ -f " $varsFile " ]
207- then
208- while read p; do
209- # Skip comments. (Cannot use ${p:0:1} because it's bash-specific.)
210- case " $p " in
211- ' #' * ) continue ;;
212- esac
213- info " Encrypting ${p%% =* } "
214- # ######################## TODO #########################
215- yes | $EXEC travis encrypt --$mode " $p " --add env.global --repo " $repoSlug "
216- test $? -eq 0 || die " Failed to encrypt variable '$p '"
217- done < " $varsFile "
218- $EXEC git commit " $gitactionConfig " -m " GitHub Action: add encrypted environment variables"
219- else
220- warn " No $varsFile found. GitHub Action will not have any environment variables set!"
221- fi
222-
223- # add key/value pairs as env vars to yml file
224- if [ -f " $varsFile " ]
225- then
226- while read p; do
227- # Skip comments. (Cannot use ${p:0:1} because it's bash-specific.)
228- case " $p " in
229- ' #' * ) continue ;;
230- esac
231- info " Encrypting ${p%% =* } "
232- yes | $EXEC travis encrypt --$mode " $p " --add env.global --repo " $repoSlug "
233- test $? -eq 0 || die " Failed to encrypt variable '$p '"
234- done < " $varsFile "
235- $EXEC git commit " $gitactionConfig " -m " GitHub Action: add encrypted environment variables"
236- else
237- warn " No $varsFile found. GitHub Action will not have any environment variables set!"
238- fi
205+ # # encrypt key/value pairs in variables file
206+ # if [ -f "$varsFile" ]
207+ # then
208+ # while read p; do
209+ # # Skip comments. (Cannot use ${p:0:1} because it's bash-specific.)
210+ # case "$p" in
211+ # '#'*) continue;;
212+ # esac
213+ # info "Encrypting ${p%%=*}"
214+ # ######################### TODO #########################
215+ # yes | $EXEC travis encrypt --$mode "$p" --add env.global --repo "$repoSlug"
216+ # test $? -eq 0 || die "Failed to encrypt variable '$p'"
217+ # done <"$varsFile"
218+ # $EXEC git commit "$gitactionConfig" -m "GitHub Action: add encrypted environment variables"
219+ # else
220+ # warn "No $varsFile found. GitHub Action will not have any environment variables set!"
221+ # fi
222+
223+ # # add key/value pairs as env vars to yml file
224+ # if [ -f "$varsFile" ]
225+ # then
226+ # while read p; do
227+ # # Skip comments. (Cannot use ${p:0:1} because it's bash-specific.)
228+ # case "$p" in
229+ # '#'*) continue;;
230+ # esac
231+ # key=${p%%=*}
232+ # val=${p%%*=}
233+ # info "Encrypting ${key}"
234+
235+ # done <"$varsFile"
236+ # $EXEC git commit "$gitactionConfig" -m "GitHub Action: add encrypted environment variables"
237+ # else
238+ # warn "No $varsFile found. GitHub Action will not have any environment variables set!"
239+ # fi
239240
240241 # encrypt GPG keypair
241242 if [ -f " $signingKeySourceFile " ]
@@ -268,9 +269,8 @@ test -d "$credentialsDir" ||
268269 " and $signingKeySourceFile for signing of artifacts.\n" \
269270 " Please contact a SciJava administrator to receive a copy of this content."
270271
271- # check prerequisites
272- # ######################## TODO #########################
273- check git sed cut perl xmllint travis
272+ # call check method to verify prerequisites
273+ check git sed cut perl xmllint
274274
275275# parse arguments
276276EXEC=:
0 commit comments