From 912fa0f7214f19796d59ebc15bf949bc4909a1ea Mon Sep 17 00:00:00 2001 From: Julien Eluard Date: Thu, 20 Aug 2020 15:00:53 +0200 Subject: [PATCH] Only run build action in main repo --- .github/workflows/build-push-template.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build-push-template.yml b/.github/workflows/build-push-template.yml index 27f31b9..0b28b3a 100644 --- a/.github/workflows/build-push-template.yml +++ b/.github/workflows/build-push-template.yml @@ -7,6 +7,7 @@ on: jobs: build-push-template: + if: ${{ github.repository == 'substrate-developer-hub/substrate-node-template' }} runs-on: ubuntu-18.04 steps: - uses: actions/checkout@v2 @@ -45,4 +46,4 @@ jobs: token: ${{ secrets.REPO_ACCESS_TOKEN }} repository: paritytech/substrate-playground event-type: template-updated - client-payload: '{"id": "node-template", "image": "${{ steps.env.outputs.image }}"}' \ No newline at end of file + client-payload: '{"id": "node-template", "image": "${{ steps.env.outputs.image }}"}'