Skip to content

Commit 02d85f3

Browse files
authored
Rename release workflows and correct commands (#928)
The `[` character is sorted after alphabetical ones, so use `(` instead to try to keep the workflows at the top of the list. Additionally, add missing double quotes to the run commands and increase the fetch depth to fetch all history in order to find the branch points.
1 parent 3450fdf commit 02d85f3

2 files changed

Lines changed: 6 additions & 4 deletions

File tree

.github/workflows/create_arm_release_branch.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
# The branch should be created at the commit where the upstream branch
88
# point was merged on to the arm-software branch.
99

10-
name: "[arm-toolchain] Create arm-toolchain Release Branch"
10+
name: "(arm-toolchain) Create arm-toolchain Release Branch"
1111
on:
1212
workflow_dispatch:
1313
inputs:
@@ -30,6 +30,7 @@ jobs:
3030
uses: actions/checkout@v6
3131
with:
3232
token: ${{ steps.generate-token.outputs.token }}
33+
fetch-depth: 0
3334
- name: Configure Git Identity
3435
run: |
3536
git config --local user.name "github-actions[bot]"
@@ -42,8 +43,9 @@ jobs:
4243
- name: Create Branch
4344
run: |
4445
llvmbranchpoint=$(git merge-base remotes/llvm/main remotes/llvm/release/${{ inputs.release-version }}.x)
45-
armbranchpoint=$(git rev-list --reverse --ancestry-path --min-parents=2 $llvmbranchpoint..arm-software | head -n 1)
46-
if echo $armbranchpoint | grep "[0-9a-z]\{40\}"; then
46+
echo "release/${{ inputs.release-version }}.x branched at $llvmbranchpoint"
47+
armbranchpoint=$(git rev-list --reverse --ancestry-path --min-parents=2 "$llvmbranchpoint"..arm-software | head -n 1)
48+
if echo "$armbranchpoint" | grep "[0-9a-z]\{40\}"; then
4749
echo "Branching release/arm-software/${{ inputs.release-version }}.x at $armbranchpoint"
4850
else
4951
echo "Unexpected git rev-list result: $armbranchpoint"

.github/workflows/create_llvm_release_branch.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
# This workflow creates a branch to mirror an upstream LLVM release branch.
77

8-
name: "[arm-toolchain] Create LLVM Release Branch"
8+
name: "(arm-toolchain) Create LLVM Release Branch"
99
on:
1010
workflow_dispatch:
1111
inputs:

0 commit comments

Comments
 (0)