Skip to content

Commit

Permalink
Merge branch 'dominik/assign-tasks-to-actor' into dominik/test-base-b…
Browse files Browse the repository at this point in the history
…ranch
  • Loading branch information
ayoy committed Mar 6, 2024
2 parents 4329db1 + c0e2954 commit 88494a3
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 2 deletions.
10 changes: 8 additions & 2 deletions .github/actions/asana-create-action-item/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ inputs:
outputs:
assignee-id:
description: "Assignee ID"
value: ${{ steps.get-automation-subtask.outputs.assignee-id }}
value: ${{ steps.get-asana-user-id.outputs.assignee-id }}
new-task-id:
description: "New task ID"
value: ${{ steps.create-task.outputs.new-task-id }}
Expand All @@ -43,11 +43,17 @@ runs:
access-token: ${{ inputs.access-token }}
task-url: ${{ inputs.release-task-url }}

- id: get-asana-user-id
uses: duckduckgo/apple-infra/actions/asana-get-user-id-for-github-handle@main
with:
access-token: ${{ inputs.access-token }}
github-handle: ${{ github.actor }}

- id: process-template-payload
if: ${{ inputs.template-name }}
shell: bash
env:
ASSIGNEE_ID: ${{ steps.get-automation-subtask.outputs.assignee-id }}
ASSIGNEE_ID: ${{ steps.get-asana-user-id.outputs.user-id }}
AUTOMATION_TASK_ID: ${{ steps.get-automation-subtask.outputs.automation-task-id }}
TEMPLATE_PATH: ${{ github.action_path }}/templates/${{ inputs.template-name }}.yml
WORKFLOW_URL: https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}
Expand Down
7 changes: 7 additions & 0 deletions .github/workflows/code_freeze.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,13 @@ jobs:
access-token: ${{ secrets.ASANA_ACCESS_TOKEN }}
github-handle: ${{ github.actor }}

- name: Get Asana user ID
id: get-asana-user-id
uses: duckduckgo/apple-infra/actions/asana-get-user-id-for-github-handle@main
with:
access-token: ${{ secrets.ASANA_ACCESS_TOKEN }}
github-handle: ${{ github.actor }}

- name: Create release task
id: create_release_task
env:
Expand Down

0 comments on commit 88494a3

Please sign in to comment.