Only run build action in main repo

main
Julien Eluard 2020-08-20 15:00:53 +02:00 committed by GitHub
parent c55ca4c83f
commit 912fa0f721
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

View File

@ -7,6 +7,7 @@ on:
jobs: jobs:
build-push-template: build-push-template:
if: ${{ github.repository == 'substrate-developer-hub/substrate-node-template' }}
runs-on: ubuntu-18.04 runs-on: ubuntu-18.04
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v2
@ -45,4 +46,4 @@ jobs:
token: ${{ secrets.REPO_ACCESS_TOKEN }} token: ${{ secrets.REPO_ACCESS_TOKEN }}
repository: paritytech/substrate-playground repository: paritytech/substrate-playground
event-type: template-updated event-type: template-updated
client-payload: '{"id": "node-template", "image": "${{ steps.env.outputs.image }}"}' client-payload: '{"id": "node-template", "image": "${{ steps.env.outputs.image }}"}'