Skip to content

Commit

Permalink
ci: update Asana attachment workflow
Browse files Browse the repository at this point in the history
Two small changes:

* Add an explicit action version, as the `latest` tag is apparently not
  being updated to consistently point to the actual latest version.

* Add a conditional so the job doesn't attempt to run (and fail) if
  there is no Asana link in the PR. Taken from this suggestion:
  Asana/create-app-attachment-github-action#14
  • Loading branch information
digitalcora authored Mar 21, 2024
1 parent a23a50d commit cf3bfc6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .github/workflows/asana-pr-opened.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand Down

0 comments on commit cf3bfc6

Please sign in to comment.