Skip to content

Commit cb4b1a0

Browse files
committed
fix escaping
1 parent e32c818 commit cb4b1a0

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

.github/workflows/cleanup.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -21,12 +21,12 @@ jobs:
2121
- uses: actions/checkout@v4
2222
# start inserted via pull-hook.sh - modify there
2323
- name: Setup JDK 17
24-
uses: actions/setup-java
24+
uses: actions/setup-java@v4
2525
with:
2626
distribution: temurin
2727
java-version: 17
2828
cache: sbt
29-
- uses: sbt/setup-sbt
29+
- uses: sbt/setup-sbt@v1
3030
# end inserted via pull-hook.sh - modify there
3131
- name: Cleanup Sources
3232
run: ./scripts/cleanup-on-push-to-main.sh

.gt/remotes/tegonal-gh-commons/pull-hook.sh

+1-2
Original file line numberDiff line numberDiff line change
@@ -49,8 +49,7 @@ function gt_pullHook_tegonal_gh_commons_before() {
4949
# end inserted via pull-hook.sh - modify there
5050
EOM
5151
)
52-
53-
perl -0777 -i -pe "s|\n(\s+ - name: Cleanup Sources)|\n$yaml\n\${1}|g" "$source"
52+
YAML="$yaml" perl -0777 -i -pe "s|\n(\s+ - name: Cleanup Sources)|\n\$ENV{YAML}\n\${1}|g" "$source"
5453
fi
5554
}
5655

0 commit comments

Comments
 (0)