Skip to content

Commit c51dd51

Browse files
committed
Migrate the log storage for update-ruby.sh to GitHub Actions
from /tmp/update-ruby.log in git.ruby-lang.org
1 parent 0b0eae9 commit c51dd51

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

bin/update-ruby.sh

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,9 @@ export LANG=en_US.UTF-8
1212
ruby_repo="/var/git/ruby.git"
1313
ruby_branch="$(basename "$1")"
1414
ruby_workdir="/data/git.ruby-lang.org/update-ruby"
15-
log_path="/tmp/update-ruby.log"
1615

1716
function log() {
18-
echo -e "[$$: $(date "+%Y-%m-%d %H:%M:%S %Z")] $1" >> "$log_path"
17+
echo -e "[$$: $(date "+%Y-%m-%d %H:%M:%S %Z")] $1"
1918
}
2019

2120
# Initialize working directory only if missing
@@ -28,7 +27,7 @@ log "### start ###"
2827

2928
# Sync: GitHub -> ruby_workdir -> cgit
3029
# By doing this way, we can make sure all git hooks are performed on sync-ed commits.
31-
git -C "$ruby_workdir" fetch github "$ruby_branch" >> "$log_path" 2>&1
32-
SVN_ACCOUNT_NAME=git git -C "$ruby_workdir" push origin "github/${ruby_branch}:${ruby_branch}" >> "$log_path" 2>&1
30+
git -C "$ruby_workdir" fetch github "$ruby_branch"
31+
SVN_ACCOUNT_NAME=git git -C "$ruby_workdir" push origin "github/${ruby_branch}:${ruby_branch}"
3332

3433
log "### end ###\n"

0 commit comments

Comments
 (0)