prevent duplicate build for pull request

This commit is contained in:
2021-01-01 17:25:53 +11:00
parent 5670d183fe
commit bdd122231c
2 changed files with 8 additions and 1 deletions
+1
View File
@@ -7,6 +7,7 @@ on:
- '*'
jobs:
build:
if: github.event_name == 'push' || github.event.pull_request.head.repo.full_name != 'wahyd4/aria2-ariang-docker'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
+7 -1
View File
@@ -1,7 +1,13 @@
name: Docker Image Vulnability Check
on: [push]
on:
pull_request:
branches: master
push:
branches:
- '*'
jobs:
build:
if: github.event_name == 'push' || github.event.pull_request.head.repo.full_name != 'wahyd4/aria2-ariang-docker'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master