Skip to content

Commit aa2a07f

Browse files
committed
github-actionify: fix pom.xml simulated update
It was actually changing the file even in simulation mode.
1 parent f155742 commit aa2a07f

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

github-actionify.sh

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -107,11 +107,11 @@ process() {
107107
die "Not pom-scijava parent: $parent. Run with -p flag to skip this check."
108108
fi
109109

110-
# Change pom.xml from Travis CI to GitHub Action
110+
# Change pom.xml from Travis CI to GitHub Actions
111111
domain="github.com"
112-
sed -i.bak 's/Travis CI/GitHub Actions/g' pom.xml
113-
sed -i.bak "s;travis-ci.*;github.com/$repoSlug/actions/workflows/.gitaction.yml</url>;g" pom.xml
114-
rm -f pom.xml.bak
112+
sed 's/Travis CI/GitHub Actions/g' pom.xml >"$tmpFile"
113+
sed "s;travis-ci.*;github.com/$repoSlug/actions/workflows/.gitaction.yml</url>;g" pom.xml >>"$tmpFile"
114+
update pom.xml
115115

116116
# -- GitHub Action sanity checks --
117117

0 commit comments

Comments
 (0)