Skip to content

Commit

Permalink
Merge pull request #75 from adobecom/fix-nala-action
Browse files Browse the repository at this point in the history
Fix nala action
  • Loading branch information
cod17828 authored Oct 1, 2024
2 parents 9f5d9d9 + d8591d6 commit c031524
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions .github/workflows/run-nala-on-dme.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,14 @@ name: DME-Partners Nala Tests

on:
pull_request:
types: [ labeled, opened, synchronize, reopened ]
types: [ labeled, synchronize, reopened ]

jobs:
action:
name: Running E2E & IT
if: contains(github.event.pull_request.labels.*.name, 'run-on-dme')
if: github.event.label.name == 'run-on-dme'
|| (github.event.action == 'synchronize' && contains(join(github.event.pull_request.labels.*.name, ','), 'run-on-dme'))
|| (github.event.action =='reopened' && contains(join(github.event.pull_request.labels.*.name, ','), 'run-on-dme'))
runs-on: ubuntu-latest

steps:
Expand All @@ -16,7 +18,7 @@ jobs:
- name: Run Nala
uses: adobecom/dme-partners@stage # Change if doing dev work
env:
labels: ${{ join(github.event.pull_request.labels.*.name, ' ') }}
labels: ${{ '@anonymous' }}
branch: ${{ github.event.pull_request.head.ref }}
repoName: ${{ github.repository }}
prUrl: ${{ github.event.pull_request.head.repo.html_url }}
Expand Down

0 comments on commit c031524

Please sign in to comment.