Skip to content

Commit 3f84113

Browse files
author
Jack Yuan
committed
add test code
1 parent 7d87232 commit 3f84113

2 files changed

Lines changed: 5 additions & 5 deletions

File tree

github-action-build.sh

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -85,11 +85,9 @@ EOL
8585
ciOrg=${ciPrefix##*/}
8686
if [ ${secure_env} != true ]; then
8787
echo "No deploy -- secure environment variables not available"
88-
fi
89-
if [ ${pull_request} != false ]; then
88+
elif [ ${pull_request} != false ]; then
9089
echo "No deploy -- pull request detected"
91-
fi
92-
if [ ${repo_fork} != "$ciOrg/$ciRepo" ]; then
90+
elif [ ${repo_fork} != "$ciOrg/$ciRepo" ]; then
9391
echo "No deploy -- repository fork: ${repo_fork} != $ciOrg/$ciRepo"
9492
else
9593
echo "All checks passed for artifact deployment"

github-actionify.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#!/bin/sh
22

3-
# travisify.sh
3+
# github-actionify.sh
44
#
55
# Script for enabling or updating GitHub Action builds for a given repository.
66

@@ -95,6 +95,7 @@ process() {
9595
# -- POM sanity checks --
9696

9797
parent=$(xmllint --xpath '//*[local-name()="project"]/*[local-name()="parent"]/*[local-name()="artifactId"]' pom.xml|sed 's/[^>]*>//'|sed 's/<.*//')
98+
echo $parent ##########################################
9899
if [ -z "$SKIP_PARENT_CHECK" ]
99100
then
100101
test "$parent" = "pom-scijava" ||
@@ -103,6 +104,7 @@ process() {
103104

104105
# https://docs.github.com/en/actions/managing-workflow-runs/adding-a-workflow-status-badge
105106
domain=$(grep "travis-ci\.[a-z]*/$repoSlug" pom.xml 2>/dev/null | sed 's/.*\(travis-ci\.[a-z]*\).*/\1/')
107+
echo $domain ##################################################
106108
test "$domain" &&
107109
info "Detected domain from pom.xml: $domain" ||
108110
die "No valid ciManagement section in pom.xml. Please add one, then try again."

0 commit comments

Comments
 (0)