From d8591d67c72af91a1b98b28ea734699b2ccf92cd Mon Sep 17 00:00:00 2001 From: Ratko Zagorac Date: Thu, 26 Sep 2024 14:46:45 +0200 Subject: [PATCH] Make sure nala action runs only once --- .github/workflows/run-nala-on-dme.yml | 29 +++++++++++++-------------- 1 file changed, 14 insertions(+), 15 deletions(-) diff --git a/.github/workflows/run-nala-on-dme.yml b/.github/workflows/run-nala-on-dme.yml index 7d8ef9e..7a071ee 100644 --- a/.github/workflows/run-nala-on-dme.yml +++ b/.github/workflows/run-nala-on-dme.yml @@ -10,23 +10,22 @@ jobs: 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: - name: Check out repository uses: actions/checkout@v3 - # - name: Run Nala - # uses: adobecom/dme-partners@stage # Change if doing dev work - # env: - # labels: ${{ join(github.event.pull_request.labels.*.name, ' ') }} - # branch: ${{ github.event.pull_request.head.ref }} - # repoName: ${{ github.repository }} - # prUrl: ${{ github.event.pull_request.head.repo.html_url }} - # prOrg: ${{ github.event.pull_request.head.repo.owner.login }} - # prRepo: ${{ github.event.pull_request.head.repo.name }} - # prBranch: ${{ github.event.pull_request.head.ref }} - # prBaseBranch: ${{ github.event.pull_request.base.ref }} - # IMS_EMAIL: ${{ secrets.IMS_EMAIL }} - # IMS_PASS: ${{ secrets.IMS_PASS }} - # HLX_API_KEY: ${{ secrets.HLX_API_KEY }} + - name: Run Nala + uses: adobecom/dme-partners@stage # Change if doing dev work + env: + labels: ${{ '@anonymous' }} + branch: ${{ github.event.pull_request.head.ref }} + repoName: ${{ github.repository }} + prUrl: ${{ github.event.pull_request.head.repo.html_url }} + prOrg: ${{ github.event.pull_request.head.repo.owner.login }} + prRepo: ${{ github.event.pull_request.head.repo.name }} + prBranch: ${{ github.event.pull_request.head.ref }} + prBaseBranch: ${{ github.event.pull_request.base.ref }} + IMS_EMAIL: ${{ secrets.IMS_EMAIL }} + IMS_PASS: ${{ secrets.IMS_PASS }} + HLX_API_KEY: ${{ secrets.HLX_API_KEY }}