diff --git a/.github/workflows/cygwin.yml b/.github/workflows/cygwin.yml index c7ea92bb40..59b70f7693 100644 --- a/.github/workflows/cygwin.yml +++ b/.github/workflows/cygwin.yml @@ -42,9 +42,9 @@ jobs: run: | echo '::set-env name=PATH::C:\tools\cygwin\bin;C:\tools\cygwin\usr\bin' # Not using official actions/checkout because it's unstable and sometimes doesn't work for a fork. - - name: Checkout ruby/ruby + - name: Checkout push to ruby run: | - git clone --single-branch --shallow-since=yesterday https://github.com/ruby/ruby src + git clone --single-branch --shallow-since=yesterday https://github.com/${{ github.repository }} src git -C src reset --hard ${{ github.sha }} if: github.event_name == 'push' shell: cmd diff --git a/.github/workflows/macos.yml b/.github/workflows/macos.yml index f68a448644..ec2e631c73 100644 --- a/.github/workflows/macos.yml +++ b/.github/workflows/macos.yml @@ -20,9 +20,9 @@ jobs: sudo /usr/libexec/ApplicationFirewall/socketfilterfw --setglobalstate off sudo /usr/libexec/ApplicationFirewall/socketfilterfw --getglobalstate # Not using official actions/checkout because it's unstable and sometimes doesn't work for a fork. - - name: Checkout ruby/ruby + - name: Checkout push to ruby run: | - git clone --single-branch --shallow-since=yesterday https://github.com/ruby/ruby src + git clone --single-branch --shallow-since=yesterday https://github.com/${{ github.repository }} src git -C src reset --hard "$GITHUB_SHA" if: github.event_name == 'push' - name: Checkout a pull request diff --git a/.github/workflows/mingw.yml b/.github/workflows/mingw.yml index af48f85fb9..51e258c848 100644 --- a/.github/workflows/mingw.yml +++ b/.github/workflows/mingw.yml @@ -37,9 +37,9 @@ jobs: git config --system core.autocrlf false git config --system core.eol lf # Not using official actions/checkout@v2 because it's unstable. - - name: Checkout ruby/ruby + - name: Checkout push to ruby run: | - git clone --single-branch --shallow-since=yesterday https://github.com/ruby/ruby src + git clone --single-branch --shallow-since=yesterday https://github.com/${{ github.repository }} src git -C src reset --hard "$GITHUB_SHA" if: github.event_name == 'push' - name: Checkout a pull request diff --git a/.github/workflows/mjit.yml b/.github/workflows/mjit.yml index 879b0c0cc7..2b923cfd05 100644 --- a/.github/workflows/mjit.yml +++ b/.github/workflows/mjit.yml @@ -22,9 +22,9 @@ jobs: sudo apt-get update -q || : sudo apt-get install --no-install-recommends -q -y build-essential libssl-dev libyaml-dev libreadline6-dev zlib1g-dev libncurses5-dev libffi-dev libgdbm-dev bison autoconf ruby # Not using official actions/checkout because it's unstable and sometimes doesn't work for a fork. - - name: Checkout ruby/ruby + - name: Checkout push to ruby run: | - git clone --single-branch --shallow-since=yesterday https://github.com/ruby/ruby src + git clone --single-branch --shallow-since=yesterday https://github.com/${{ github.repository }} src git -C src reset --hard "$GITHUB_SHA" if: github.event_name == 'push' - name: Checkout a pull request diff --git a/.github/workflows/ubuntu.yml b/.github/workflows/ubuntu.yml index fbb23d11ee..65a140c186 100644 --- a/.github/workflows/ubuntu.yml +++ b/.github/workflows/ubuntu.yml @@ -53,9 +53,9 @@ jobs: sudo apt-get update -q || : sudo apt-get install --no-install-recommends -q -y build-essential libssl-dev libyaml-dev libreadline6-dev zlib1g-dev libncurses5-dev libffi-dev libgdbm-dev bison autoconf ruby # Not using official actions/checkout because it's unstable and sometimes doesn't work for a fork. - - name: Checkout ruby/ruby + - name: Checkout push to ruby run: | - git clone --single-branch --shallow-since=yesterday https://github.com/ruby/ruby src + git clone --single-branch --shallow-since=yesterday https://github.com/${{ github.repository }} src git -C src reset --hard "$GITHUB_SHA" if: github.event_name == 'push' - name: Checkout a pull request diff --git a/.github/workflows/windows.yml b/.github/workflows/windows.yml index cf4a4f6e12..357b3cfc7a 100644 --- a/.github/workflows/windows.yml +++ b/.github/workflows/windows.yml @@ -38,9 +38,9 @@ jobs: run: | choco install --no-progress openssl winflexbison3 # Not using official actions/checkout because it's unstable and sometimes doesn't work for a fork. - - name: Checkout ruby/ruby + - name: Checkout push to ruby run: | - git clone --single-branch --shallow-since=yesterday https://github.com/ruby/ruby src + git clone --single-branch --shallow-since=yesterday https://github.com/${{ github.repository }} src git -C src reset --hard ${{ github.sha }} if: github.event_name == 'push' - name: Checkout a pull request