ruby-changes:63279
From: Kazuhiro <ko1@a...>
Date: Tue, 6 Oct 2020 11:41:34 +0900 (JST)
Subject: [ruby-changes:63279] f9df340a6a (master): Remove unused commit_info
https://git.ruby-lang.org/ruby.git/commit/?id=f9df340a6a From f9df340a6ac8d7f5ba0994cf2bd5d14e4c7a563f Mon Sep 17 00:00:00 2001 From: Kazuhiro NISHIYAMA <zn@m...> Date: Tue, 6 Oct 2020 10:23:54 +0900 Subject: Remove unused commit_info diff --git a/.github/workflows/check_dependencies.yml b/.github/workflows/check_dependencies.yml index b79eacf..84e1219 100644 --- a/.github/workflows/check_dependencies.yml +++ b/.github/workflows/check_dependencies.yml @@ -20,8 +20,6 @@ jobs: https://github.com/ruby/ruby/blob/trunk/.github/workflows/check_dependencies.yml#L20 - uses: actions/checkout@v2 with: path: src - - run: ./src/tool/actions-commit-info.sh - id: commit_info - name: Fixed world writable dirs run: | chmod -v go-w $HOME $HOME/.config diff --git a/.github/workflows/macos.yml b/.github/workflows/macos.yml index 6941dd4..40f4d9d 100644 --- a/.github/workflows/macos.yml +++ b/.github/workflows/macos.yml @@ -21,8 +21,6 @@ jobs: https://github.com/ruby/ruby/blob/trunk/.github/workflows/macos.yml#L21 - uses: actions/checkout@v2 with: path: src - - run: ./src/tool/actions-commit-info.sh - id: commit_info - name: Install libraries run: | export WAITS='5 60' diff --git a/.github/workflows/mingw.yml b/.github/workflows/mingw.yml index 9726c69..8aacb72 100644 --- a/.github/workflows/mingw.yml +++ b/.github/workflows/mingw.yml @@ -32,9 +32,6 @@ jobs: https://github.com/ruby/ruby/blob/trunk/.github/workflows/mingw.yml#L32 - uses: actions/checkout@v2 with: path: src - - run: ./src/tool/actions-commit-info.sh - shell: bash - id: commit_info - name: Set up Ruby & MSYS2 uses: MSP-Greg/setup-ruby-pkgs@v1 with: diff --git a/.github/workflows/mjit.yml b/.github/workflows/mjit.yml index 9763c8b..ff2d5d9 100644 --- a/.github/workflows/mjit.yml +++ b/.github/workflows/mjit.yml @@ -25,8 +25,6 @@ jobs: https://github.com/ruby/ruby/blob/trunk/.github/workflows/mjit.yml#L25 - uses: actions/checkout@v2 with: path: src - - run: ./src/tool/actions-commit-info.sh - id: commit_info - name: Fixed world writable dirs run: | chmod -v go-w $HOME $HOME/.config diff --git a/.github/workflows/ubuntu.yml b/.github/workflows/ubuntu.yml index 16e2106..8c879fe 100644 --- a/.github/workflows/ubuntu.yml +++ b/.github/workflows/ubuntu.yml @@ -40,8 +40,6 @@ jobs: https://github.com/ruby/ruby/blob/trunk/.github/workflows/ubuntu.yml#L40 - uses: actions/checkout@v2 with: path: src - - run: ./src/tool/actions-commit-info.sh - id: commit_info - name: Fixed world writable dirs run: | chmod -v go-w $HOME $HOME/.config diff --git a/.github/workflows/windows.yml b/.github/workflows/windows.yml index 2dff4c7..3281727 100644 --- a/.github/workflows/windows.yml +++ b/.github/workflows/windows.yml @@ -40,9 +40,6 @@ jobs: https://github.com/ruby/ruby/blob/trunk/.github/workflows/windows.yml#L40 - uses: actions/checkout@v2 with: path: src - - run: ./src/tool/actions-commit-info.sh - shell: bash - id: commit_info - run: md build shell: cmd - name: Configure diff --git a/tool/actions-commit-info.sh b/tool/actions-commit-info.sh deleted file mode 100755 index 56f857c..0000000 --- a/tool/actions-commit-info.sh +++ /dev/null @@ -1,17 +0,0 @@ https://github.com/ruby/ruby/blob/trunk/.github/workflows/windows.yml#L0 -#!/bin/bash -set -euo pipefail -cd $(dirname "$0")/.. -set_output () { - echo "$1=$2" - echo "::set-output name=$1::$2" -} -COMMIT_TIMESTAMP="$(git log -1 --format=%ct)" -set_output "COMMIT_TIMESTAMP" "$COMMIT_TIMESTAMP" -LOGS=$(TZ=UTC git log --since='0:00' --date=iso-local --format='%cd %s') -echo "commits of today:" -echo "$LOGS" -COUNT=$(echo "$LOGS" | wc -l) -# strip spaces -COUNT=$((0 + COUNT)) -set_output "COMMIT_NUMBER_OF_DAY" "$COUNT" -set_output "COMMIT_DATE" "$(TZ=UTC git log --since='0:00' --date=short-local --format=%cd -1)" -- cgit v0.10.2 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/