summaryrefslogtreecommitdiff
path: root/.github/workflows/mingw.yml
diff options
context:
space:
mode:
authorTakashi Kokubun <takashikkbn@gmail.com>2020-01-06 01:45:47 -0800
committerTakashi Kokubun <takashikkbn@gmail.com>2020-01-06 01:45:52 -0800
commite3aca289708845771052b698dac35e31c0254452 (patch)
tree972beadcc7a3708307718d36e4991ecb84ff15fc /.github/workflows/mingw.yml
parent8cd292f5195be094d67096174e688504897663b7 (diff)
Support running Actions on a fork
Since 8c9450e7b875db846b19cc631af0d7fee66db5c6, we increased the chance to run GitHub Actions on a fork, as we usually use a topic branch instead of master when filing a pull request. This patch makes it possible to reuse the same GitHub Actions config on a fork repository.
Diffstat (limited to '.github/workflows/mingw.yml')
-rw-r--r--.github/workflows/mingw.yml4
1 files changed, 2 insertions, 2 deletions
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