Skip to content

Commit

Permalink
conditional trigger for approved PR in github actions
Browse files Browse the repository at this point in the history
Signed-off-by: yash-zededa <[email protected]>
  • Loading branch information
yash-zededa committed Oct 6, 2023
1 parent 7ae6f9e commit 2dbfa6b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/eden.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,19 +23,19 @@ concurrency:

jobs:
test_suite_pr:
if: ${{ github.event.review.state }} == 'approved'
if: github.event.review.state == 'approved'
uses: yash-zededa/eden/.github/workflows/test.yml@master
with:
eve_image: "evebuild/danger:pr${{ github.event.pull_request.number }}"

test_suite_master:
if: ${{ github.ref == 'refs/heads/master' }}
if: github.ref == 'refs/heads/master'
uses: yash-zededa/eden/.github/workflows/test.yml@master
with:
eve_image: "lfedge/eve:snapshot"

test_suite_tag:
if: ${{ startsWith(github.ref, 'refs/tags') }}
if: startsWith(github.ref, 'refs/tags')
uses: yash-zededa/eden/.github/workflows/test.yml@master
with:
eve_image: "lfedge/eve:${{ github.ref_name }}"

0 comments on commit 2dbfa6b

Please sign in to comment.