ruby-changes:57007
From: Takashi <ko1@a...>
Date: Tue, 13 Aug 2019 23:36:50 +0900 (JST)
Subject: [ruby-changes:57007] Takashi Kokubun: 79f9c626b6 (master): Use the official actions/checkout again (#2357)
https://git.ruby-lang.org/ruby.git/commit/?id=79f9c626b6 From 79f9c626b63c2ce6ed1f3e767838a02a668145ba Mon Sep 17 00:00:00 2001 From: Takashi Kokubun <takashikkbn@g...> Date: Tue, 13 Aug 2019 23:36:31 +0900 Subject: Use the official actions/checkout again (#2357) because clone does not checkout exact commit sha, and also we'd need to handle pull_request on fork, so I tentatively stopped to do this. diff --git a/.github/workflows/macos.yml b/.github/workflows/macos.yml index bf1514c..5cd7cc0 100644 --- a/.github/workflows/macos.yml +++ b/.github/workflows/macos.yml @@ -21,8 +21,10 @@ jobs: https://github.com/ruby/ruby/blob/trunk/.github/workflows/macos.yml#L21 run: | brew update brew install gdbm gmp libffi openssl@1... zlib autoconf automake libtool readline - - name: Checkout # not using actions/checkout because it's unstable. - run: git clone --depth=50 https://github.com/ruby/ruby . + - name: Checkout + uses: actions/checkout@master + with: + fetch-depth: 50 - name: Set ENV run: | echo '##[set-env name=JOBS]'-j$((1 + $(sysctl -n hw.activecpu))) diff --git a/.github/workflows/ubuntu.yml b/.github/workflows/ubuntu.yml index 7be2c68..d7a6cba 100644 --- a/.github/workflows/ubuntu.yml +++ b/.github/workflows/ubuntu.yml @@ -20,8 +20,10 @@ jobs: https://github.com/ruby/ruby/blob/trunk/.github/workflows/ubuntu.yml#L20 sudo apt-get update sudo apt-get install ruby2.5 sudo apt-get build-dep ruby2.5 - - name: Checkout # not using actions/checkout because it's unstable. - run: git clone --depth=50 https://github.com/ruby/ruby . + - name: Checkout + uses: actions/checkout@master + with: + fetch-depth: 50 - name: Set ENV run: | export JOBS=-j$((1 + $(nproc --all))) diff --git a/.github/workflows/windows.yml b/.github/workflows/windows.yml index 9546da0..39645ae 100644 --- a/.github/workflows/windows.yml +++ b/.github/workflows/windows.yml @@ -31,8 +31,10 @@ jobs: https://github.com/ruby/ruby/blob/trunk/.github/workflows/windows.yml#L31 dependencies: openssl readline zlib - name: Install libraries with chocolatey run: choco install winflexbison3 - - name: Checkout # not using actions/checkout because it's unstable. - run: git clone --depth=50 https://github.com/ruby/ruby . + - name: Checkout + uses: actions/checkout@master + with: + fetch-depth: 50 - name: configure run: | call "C:\Program Files (x86)\Microsoft Visual Studio\${{ matrix.vs }}\Enterprise\VC\Auxiliary\Build\vcvars64.bat" -- cgit v0.10.2 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/