Skip to content

Commit 4713f02

Browse files
committed
chore(CI): make the CI-created branch name shorter
1 parent 92b95c3 commit 4713f02

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ jobs:
2424
jq --join-output '(.lastpushid | tostring) as $pushid | empty, .pushes[$pushid].changesets[0]'
2525
)
2626
echo "MOZCENTRAL_VERSION=$COMMIT_HASH" >> $GITHUB_ENV
27+
echo "MOZCENTRAL_VERSION_SHORT=${COMMIT_HASH:0:7}" >> $GITHUB_ENV
2728
- name: Update `mozcentral.version` File
2829
run: echo -n $MOZCENTRAL_VERSION > mozcentral.version
2930
- name: Create Pull Request
@@ -32,7 +33,7 @@ jobs:
3233
add-paths: mozcentral.version
3334
commit-message: |
3435
chore(deps): upgrade SpiderMonkey to `${{ env.MOZCENTRAL_VERSION }}`
35-
branch: chore/upgrade-spidermonkey-to-${{ env.MOZCENTRAL_VERSION }}
36+
branch: chore/upgrade-spidermonkey-to-${{ env.MOZCENTRAL_VERSION_SHORT }}
3637
title: Upgrade SpiderMonkey to mozilla-central commit `${{ env.MOZCENTRAL_VERSION }}`
3738
body: |
3839
Changeset: https://hg.mozilla.org/mozilla-central/rev/${{ env.MOZCENTRAL_VERSION }}

0 commit comments

Comments
 (0)