Skip to content

Commit 92ac7fb

Browse files
committed
updatecliaction
1 parent 6237735 commit 92ac7fb

File tree

1 file changed

+13
-8
lines changed

1 file changed

+13
-8
lines changed

.github/workflows/update-cli.yml

Lines changed: 13 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,12 @@ jobs:
1616
env:
1717
# If triggered via repository_dispatch, read from payload;
1818
# otherwise, read from workflow_dispatch input:
19-
CLI_VERSION: ${{ github.event_name == 'repository_dispatch' && github.event.client_payload.cli_version || inputs.cli_version }}
19+
RAW_VERSION: ${{ github.event_name == 'repository_dispatch' && github.event.client_payload.cli_version || inputs.cli_version }}
2020

2121
steps:
2222
- name: Check out code
2323
uses: actions/checkout@v4
2424
with:
25-
# Or 'main' or 'next' or whichever branch is your baseline
2625
ref: next
2726

2827
- name: Configure Git
@@ -37,12 +36,18 @@ jobs:
3736
uses: ruby/setup-ruby@v1
3837
with:
3938
ruby-version: 2.7
39+
4040
- name: Install dependencies
4141
run: bundle install
4242

43+
- name: Remove leading 'v'
44+
shell: bash
45+
run: |
46+
echo "CLI_VERSION=${RAW_VERSION#v}" >> $GITHUB_ENV
47+
4348
- name: Create update branch
4449
run: |
45-
git checkout -b cli-bump-${{ env.CLI_VERSION }} next
50+
git checkout -b cli-bump-${CLI_VERSION} next
4651
4752
- name: Update the CLI reference
4853
run: |
@@ -53,8 +58,8 @@ jobs:
5358

5459
- name: Create pull request
5560
run: >
56-
gh pr create -B next
57-
-H bumpsnag-CLI-$CLI_VERSION
58-
--title "Update CLI to version $CLI_VERSION"
59-
--body 'Created by bumpsnag'
60-
--reviewer rich-bugsnag
61+
gh pr create -B next
62+
-H bumpsnag-CLI-$CLI_VERSION
63+
--title "Update CLI to version $CLI_VERSION"
64+
--body 'Created by bumpsnag'
65+
--reviewer rich-bugsnag

0 commit comments

Comments
 (0)