6969 string : ${{steps.find-latest-release.outputs.prop}}
7070 split-by : ' #'
7171
72+ - name : Create Asana task in Android App project
73+ if : ${{ steps.update-check.outcome == 'failure' }}
74+ id : create-task
75+ uses : duckduckgo/native-github-asana-sync@v2.0
76+ with :
77+ asana-pat : ${{ secrets.ASANA_ACCESS_TOKEN }}
78+ asana-project : ${{ vars.GH_ANDROID_APP_PROJECT_ID }}
79+ asana-section : ${{ vars.GH_ANDROID_APP_INCOMING_SECTION_ID }}
80+ asana-task-name : Update reference tests to version ${{ steps.extract-release-version.outputs._1}}
81+ asana-task-description : |
82+ Reference tests have been updated and a PR will be created.
83+
84+ If tests failed check out https://app.asana.com/0/0/1203766026095653/f for further information on what to do next.
85+ action : ' create-asana-task'
86+
87+ - name : Get Asana task permalink
88+ if : ${{ steps.update-check.outcome == 'failure' }}
89+ id : get-task-permalink
90+ uses : duckduckgo/native-github-asana-sync@v2.0
91+ with :
92+ asana-pat : ${{ secrets.ASANA_ACCESS_TOKEN }}
93+ asana-task-id : ${{ steps.create-task.outputs.taskId }}
94+ action : ' get-asana-task-permalink'
95+
7296 - name : Create Pull Request in Android repo
7397 if : ${{ steps.update-check.outcome == 'failure' }}
7498 env :
@@ -80,33 +104,18 @@ jobs:
80104 title : Update reference tests to version ${{ steps.extract-release-version.outputs._1}}
81105 author : daxmobile <daxmobile@users.noreply.github.com>
82106 token : ${{ secrets.GT_DAXMOBILE }}
83- commit-message : Update content scope scripts to version ${{ steps.extract-release-version.outputs._1}}
107+ commit-message : Update reference tests to version ${{ steps.extract-release-version.outputs._1}}
84108 labels : reference tests, automated pr
85109 branch : automated/update-ref-tests-dependencies-${{ steps.extract-release-version.outputs._1}}
86110 body : |
111+ Task/Issue URL: ${{ steps.get-task-permalink.outputs.asanaTaskPermalink }}
112+
87113 - Automated reference tests dependency update
88-
114+
89115 This PR updates the reference tests dependency to the latest available version and copies the necessary files.
90116 If tests have failed, see https://app.asana.com/0/0/1203766026095653/f for further information on what to do next.
91-
92- - [ ] All tests must pass
93117
94- - name : Create Asana task in Android App project
95- if : ${{ steps.update-check.outcome == 'failure' }}
96- id : create-task
97- uses : duckduckgo/native-github-asana-sync@v2.0
98- with :
99- asana-pat : ${{ secrets.ASANA_ACCESS_TOKEN }}
100- asana-project : ${{ vars.GH_ANDROID_APP_PROJECT_ID }}
101- asana-section : ${{ vars.GH_ANDROID_APP_INCOMING_SECTION_ID }}
102- asana-task-name : Update reference tests to version ${{ steps.extract-release-version.outputs._1}}
103- asana-task-description : |
104- Reference tests have been updated and a PR created.
105-
106- If tests failed check out https://app.asana.com/0/0/1203766026095653/f for further information on what to do next.
107-
108- See ${{ steps.create-pr.outputs.pull-request-url }}
109- action : ' create-asana-task'
118+ - [ ] All tests must pass
110119
111120 - name : Add Asana task to Release Board project
112121 if : ${{ steps.create-task.outputs.duplicate == 'false' }}
@@ -118,18 +127,6 @@ jobs:
118127 asana-task-id : ${{ steps.create-task.outputs.taskId }}
119128 action : ' add-task-asana-project'
120129
121- - name : Update PR description with Asana task
122- if : ${{ steps.create-task.outputs.duplicate == 'false' }}
123- uses : duckduckgo/native-github-asana-sync@v2.0
124- with :
125- github-pat : ${{ secrets.GT_DAXMOBILE }}
126- github-pr : ${{ steps.create-pr.outputs.pull-request-number }}
127- github-repository : ' android'
128- github-org : ' duckduckgo'
129- asana-project : ${{ vars.GH_ANDROID_RELEASE_BOARD_PROJECT_ID }}
130- asana-task-id : ${{ steps.create-task.outputs.taskId }}
131- action : ' add-task-pr-description'
132-
133130 - name : Create Asana task when workflow failed
134131 if : ${{ failure() }}
135132 id : create-failure-task
0 commit comments