@@ -29,6 +29,18 @@ tasks:
2929 else :
3030 $if : ' tasks_for in ["cron", "action"]'
3131 then : " ${repository.url}"
32+ base_sha :
33+ $if : ' tasks_for == "github-push"'
34+ then : " ${event.before}"
35+ else :
36+ $if : ' tasks_for[:19] == "github-pull-request"'
37+ then : " ${event.pull_request.base.sha}"
38+ else :
39+ $if : ' tasks_for == "github-release"'
40+ then : " ${event.release.target_commitish}"
41+ else :
42+ $if : ' tasks_for in ["action", "cron"]'
43+ then : " ${push.base_revision}"
3244 repoUrl :
3345 $if : ' tasks_for in ["github-push", "github-release"]'
3446 then : " ${event.repository.html_url}"
@@ -207,6 +219,7 @@ tasks:
207219 # to `mach taskgraph decision` are all on the command line.
208220 $merge :
209221 - MOZILLAVPN_BASE_REPOSITORY : " ${baseRepoUrl}"
222+ MOZILLAVPN_BASE_REV : " ${base_sha}"
210223 MOZILLAVPN_HEAD_REPOSITORY : " ${repoUrl}"
211224 MOZILLAVPN_HEAD_REF : " ${head_branch}"
212225 MOZILLAVPN_HEAD_REV : " ${head_sha}"
@@ -231,13 +244,14 @@ tasks:
231244
232245 # Note: This task is built server side without the context or tooling that
233246 # exist in tree so we must hard code the hash
234- image : mozillareleases/taskgraph:decision-v14.2 .1@sha256:f4e3a22df9ec0017a2534b3a7b4cd9b60318f86619e0c2156c12c1ec1a0e32cb
247+ image : mozillareleases/taskgraph:decision-v18.0 .1@sha256:0657e6a6e2ed2272a2ba7c8cbb1df5860a608e97af431e6f32e5106804d236f0
235248
236249 maxRunTime : 1800
237250
238251 command :
239252 - run-task
240253 - " --mozillavpn-checkout=/builds/worker/checkouts/src"
254+ - " --mozillavpn-shallow-clone"
241255 - " --task-cwd=/builds/worker/checkouts/src"
242256 - " --"
243257 - bash
0 commit comments