Skip to content

Commit

Permalink
feat(asana): add support for moving an asana task to a development se…
Browse files Browse the repository at this point in the history
…ction (#20)
  • Loading branch information
meagharty authored Jan 2, 2024
1 parent e7f8691 commit 063a37f
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions .github/workflows/asana.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
on:
workflow_call:
inputs:
development-section:
type: string
required: false
description: The Asana project section for tickets with PRs that are in development. Requires secrets.asana-token.
merged-section:
type: string
required: false
Expand Down Expand Up @@ -40,6 +44,17 @@ jobs:
[ -n "${{ secrets.asana-token }}" ] && echo "has-asana-token=yes" >> "$GITHUB_OUTPUT"
[ -n "${{ secrets.github-secret }}" ] && echo "has-github-secret=yes" >> "$GITHUB_OUTPUT"
cat "$GITHUB_OUTPUT"
move-to-in-development-asana-ticket-job:
runs-on: ubuntu-latest
needs: check-for-secrets
if: inputs.development-section != '' && needs.check-for-secrets.outputs.has-asana-token == 'yes' && (github.event.action == 'opened' || github.event.action == 'reopened') && github.actor != 'dependabot[bot]'
steps:
- name: Move ticket to In Development
uses: mbta/[email protected]
with:
asana-pat: ${{ secrets.asana-token }}
trigger-phrase: ${{ inputs.trigger-phrase }}
target-section: ${{ inputs.development-section }}
move-to-merged-asana-ticket-job:
runs-on: ubuntu-latest
needs: check-for-secrets
Expand Down

0 comments on commit 063a37f

Please sign in to comment.