diff --git a/.github/workflows/asana-pr-opened.yml b/.github/workflows/asana-pr-opened.yml index 7716d092a..62ba74f5d 100644 --- a/.github/workflows/asana-pr-opened.yml +++ b/.github/workflows/asana-pr-opened.yml @@ -14,11 +14,12 @@ jobs: trigger-phrase: "\\*\\*Asana task\\*\\*:" targets: '[{"project": "Screens Dev - Sprint", "section": "In Review"}]' create-asana-attachment-job: + if: contains(github.event.pull_request.body, 'https://app.asana.com') runs-on: ubuntu-latest name: Create pull request attachments on Asana tasks steps: - name: Create pull request attachments - uses: Asana/create-app-attachment-github-action@latest + uses: Asana/create-app-attachment-github-action@v1.3 id: postAttachment with: asana-secret: ${{ secrets.ASANA_GITHUB_INTEGRATION_SECRET }}