@@ -16,13 +16,12 @@ jobs:
16
16
env :
17
17
# If triggered via repository_dispatch, read from payload;
18
18
# 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 }}
20
20
21
21
steps :
22
22
- name : Check out code
23
23
uses : actions/checkout@v4
24
24
with :
25
- # Or 'main' or 'next' or whichever branch is your baseline
26
25
ref : next
27
26
28
27
- name : Configure Git
@@ -37,12 +36,18 @@ jobs:
37
36
uses : ruby/setup-ruby@v1
38
37
with :
39
38
ruby-version : 2.7
39
+
40
40
- name : Install dependencies
41
41
run : bundle install
42
42
43
+ - name : Remove leading 'v'
44
+ shell : bash
45
+ run : |
46
+ echo "CLI_VERSION=${RAW_VERSION#v}" >> $GITHUB_ENV
47
+
43
48
- name : Create update branch
44
49
run : |
45
- git checkout -b cli-bump-${{ env. CLI_VERSION } } next
50
+ git checkout -b cli-bump-${CLI_VERSION} next
46
51
47
52
- name : Update the CLI reference
48
53
run : |
53
58
54
59
- name : Create pull request
55
60
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