From 80d746ba8fa1771933ac530e7d908cc8c1c9b104 Mon Sep 17 00:00:00 2001 From: peaceiris <30958501+peaceiris@users.noreply.github.com> Date: Thu, 21 Jan 2021 20:57:13 +0900 Subject: [PATCH] Change repository_owner to event.repository.fork --- .github/workflows/dev-image.yml | 2 +- .github/workflows/test.yml | 10 +++++----- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/.github/workflows/dev-image.yml b/.github/workflows/dev-image.yml index 4232d8ef8..324eef8f2 100644 --- a/.github/workflows/dev-image.yml +++ b/.github/workflows/dev-image.yml @@ -43,4 +43,4 @@ jobs: - run: make ci - run: make all - run: docker-compose push - if: github.ref == 'refs/heads/main' && github.repository_owner == 'peaceiris' + if: github.ref == 'refs/heads/main' && github.event.repository.fork == false diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index d9cd85fc7..e4522d2fd 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -98,7 +98,7 @@ jobs: - name: Deploy if: | startsWith(matrix.os, 'ubuntu-18.04') && - github.ref == 'refs/heads/main' && github.repository_owner == 'peaceiris' + github.ref == 'refs/heads/main' && github.event.repository.fork == false uses: ./ with: # deploy_key: ${{ secrets.ACTIONS_DEPLOY_KEY }} @@ -117,7 +117,7 @@ jobs: - name: Deploy if: | startsWith(matrix.os, 'ubuntu-16.04') && - github.ref == 'refs/heads/main' && github.repository_owner == 'peaceiris' + github.ref == 'refs/heads/main' && github.event.repository.fork == false uses: ./ with: deploy_key: ${{ secrets.ACTIONS_DEPLOY_KEY }} @@ -135,7 +135,7 @@ jobs: - name: Deploy if: | startsWith(matrix.os, 'macos') && - github.ref == 'refs/heads/main' && github.repository_owner == 'peaceiris' + github.ref == 'refs/heads/main' && github.event.repository.fork == false uses: ./ with: deploy_key: ${{ secrets.ACTIONS_DEPLOY_KEY }} @@ -154,7 +154,7 @@ jobs: - name: Deploy if: | startsWith(matrix.os, 'windows') && - github.ref == 'refs/heads/main' && github.repository_owner == 'peaceiris' + github.ref == 'refs/heads/main' && github.event.repository.fork == false uses: ./ with: # deploy_key: ${{ secrets.ACTIONS_DEPLOY_KEY }} @@ -173,7 +173,7 @@ jobs: - name: Deploy if: | startsWith(matrix.os, 'ubuntu-20.04') && - github.ref == 'refs/heads/main' && github.repository_owner == 'peaceiris' + github.ref == 'refs/heads/main' && github.event.repository.fork == false uses: ./ with: # deploy_key: ${{ secrets.ACTIONS_DEPLOY_KEY }}