-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'dominik/assign-tasks-to-actor' into dominik/test-base-b…
…ranch
- Loading branch information
Showing
3 changed files
with
18 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -37,11 +37,19 @@ jobs: | |
git config --global user.name "Dax the Duck" | ||
git config --global user.email "[email protected]" | ||
bundle exec fastlane make_release_branch | ||
- 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: | ||
ASANA_ACCESS_TOKEN: ${{ secrets.ASANA_ACCESS_TOKEN }} | ||
ASSIGNEE_ID: ${{ steps.get-asana-user-id.outputs.user-id }} | ||
run: | | ||
version="$(echo ${{ steps.make_release_branch.outputs.release_branch_name }} | cut -d '/' -f 2)" | ||
task_name="macOS App Release $version" | ||
|
@@ -60,14 +68,11 @@ jobs: | |
--output /dev/null \ | ||
-d "{\"data\": {\"task\": \"${asana_task_id}\"}}" | ||
assignee_id="$(curl -fLSs https://raw.githubusercontent.com/duckduckgo/BrowserServicesKit/main/.github/actions/asana-failed-pr-checks/user_ids.json \ | ||
| jq -r .${{ github.actor }})" | ||
curl -fLSs -X PUT "https://app.asana.com/api/1.0/tasks/${asana_task_id}" \ | ||
-H "Authorization: Bearer ${{ env.ASANA_ACCESS_TOKEN }}" \ | ||
-H "Content-Type: application/json" \ | ||
--output /dev/null \ | ||
-d "{ \"data\": { \"assignee\": \"$assignee_id\" }}" | ||
-d "{ \"data\": { \"assignee\": \"$ASSIGNEE_ID\" }}" | ||
- name: Update Asana tasks for the release | ||
env: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters