Skip to content

Commit d54b949

Browse files
committed
1 parent 2035d01 commit d54b949

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

.github/workflows/update-mozcentral-version.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
name: 'Create pull requests to update mozilla-central version to the latest'
22

33
on:
4-
schedule:
5-
- cron: "00 14 */100,1-7 * 1" # run on the first Monday of each month at 14:00 UTC (10:00 Eastern Daylight Time)
4+
# schedule:
5+
# - cron: "00 14 */100,1-7 * 1" # run on the first Monday of each month at 14:00 UTC (10:00 Eastern Daylight Time)
66
# See https://blog.healthchecks.io/2022/09/schedule-cron-job-the-funky-way/
77
workflow_call:
88
workflow_dispatch: # or you can run it manually
@@ -21,7 +21,7 @@ jobs:
2121
# See https://mozilla-version-control-tools.readthedocs.io/en/latest/hgmo/pushlog.html#hgweb-commands
2222
run: |
2323
COMMIT_HASH=$(
24-
curl -s "https://hg.mozilla.org/mozilla-central/json-pushes?tipsonly=1&version=2" |\
24+
curl -L -s "https://hg.mozilla.org/mozilla-central/json-pushes?tipsonly=1&version=2" |\
2525
jq --join-output '(.lastpushid | tostring) as $pushid | empty, .pushes[$pushid].changesets[0]'
2626
)
2727
echo "MOZCENTRAL_VERSION=$COMMIT_HASH" >> $GITHUB_ENV

mozcentral.version

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
dd8b1488a379ee395592f636d084cf81117f3b4c
1+
cdfe21b20eacfaa6712dd9821d6383859ce386c6

setup.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,8 @@ echo "Done installing dependencies"
4444
echo "Downloading spidermonkey source code"
4545
# Read the commit hash for mozilla-central from the `mozcentral.version` file
4646
MOZCENTRAL_VERSION=$(cat mozcentral.version)
47-
wget -c -q -O firefox-source-${MOZCENTRAL_VERSION}.zip https://hg.mozilla.org/mozilla-central/archive/${MOZCENTRAL_VERSION}.zip
48-
unzip -q firefox-source-${MOZCENTRAL_VERSION}.zip && mv mozilla-central-${MOZCENTRAL_VERSION} firefox-source
47+
wget -c -q -O firefox-source-${MOZCENTRAL_VERSION}.zip https://github.com/mozilla/gecko-dev/archive/${MOZCENTRAL_VERSION}.zip
48+
unzip -q firefox-source-${MOZCENTRAL_VERSION}.zip && mv gecko-dev-${MOZCENTRAL_VERSION} firefox-source
4949
echo "Done downloading spidermonkey source code"
5050

5151
echo "Building spidermonkey"

0 commit comments

Comments
 (0)