File tree Expand file tree Collapse file tree 1 file changed +39
-0
lines changed Expand file tree Collapse file tree 1 file changed +39
-0
lines changed Original file line number Diff line number Diff line change
1
+ name : ' Create pull requests to update mozilla-central version to the latest'
2
+
3
+ on :
4
+ schedule :
5
+ - cron : " 00 14 * * 1" # run every Monday at 14:00 UTC (10:00 Eastern Daylight Time)
6
+ workflow_call :
7
+ workflow_dispatch : # or you can run it manually
8
+
9
+ defaults :
10
+ run :
11
+ shell : bash
12
+
13
+ jobs :
14
+ update :
15
+ runs-on : ubuntu-20.04
16
+ steps :
17
+ - uses : actions/checkout@v4
18
+ - name : Check Version
19
+ # Check the latest changes on mozilla-central via the Mercurial pushlog HTTP API
20
+ # See https://mozilla-version-control-tools.readthedocs.io/en/latest/hgmo/pushlog.html#hgweb-commands
21
+ run : |
22
+ COMMIT_HASH=$(
23
+ curl -s "https://hg.mozilla.org/mozilla-central/json-pushes?tipsonly=1&version=2" |\
24
+ jq --join-output '(.lastpushid | tostring) as $pushid | empty, .pushes[$pushid].changesets[0]'
25
+ )
26
+ echo "MOZCENTRAL_VERSION=$COMMIT_HASH" >> $GITHUB_ENV
27
+ - name : Update `mozcentral.version` File
28
+ run : echo $MOZCENTRAL_VERSION > mozcentral.version
29
+ - name : Create Pull Request
30
+ uses : peter-evans/create-pull-request@v6
31
+ with :
32
+ add-paths : mozcentral.version
33
+ commit-message : |
34
+ chore(deps): upgrade SpiderMonkey to `${{ env.MOZCENTRAL_VERSION }}`
35
+ branch : chore/upgrade-spidermonkey-to-${{ env.MOZCENTRAL_VERSION }}
36
+ title : Upgrade SpiderMonkey to mozilla-central commit `${{ env.MOZCENTRAL_VERSION }}`
37
+ body : |
38
+ Changeset: https://hg.mozilla.org/mozilla-central/rev/${{ env.MOZCENTRAL_VERSION }}
39
+ labels : dependencies
You can’t perform that action at this time.
0 commit comments