fastlane-plugin-stream_actions 0.3.67 → 0.3.68

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 195738840bfa8ef93bd7341f13117f152343806ce2d2f522c978b4ec89131c5a
4
- data.tar.gz: f82a547e295676312c91b5b9606be98900ed715eb5eee467323cb6dc46295e9c
3
+ metadata.gz: 88bed6970dbc508eabe029c93774796102b629e9faf98b3cf52ac941f4645d72
4
+ data.tar.gz: b39926c880a0cf821789cfde9416c728350106ac47e8cb68e0698fa0c79d2ad4
5
5
  SHA512:
6
- metadata.gz: 491259c4dede5907a6b31e4db56a053aaa3b0746d4b95fb4fe35fa71250b240cbd217896e11b35fafa585c4128ea55fea1ece5aa49838e515bb4e0a85db3d573
7
- data.tar.gz: aa1b545707330ae0a59fef04e006126b0a3dfe8d198aa77236ea92757ad4eac395c1a9ccc25af9fd17bc0446377b147a8931adc65d5ad659fae7cc0fb5b5e4ab
6
+ metadata.gz: 0d0f52315a3dfbfab80b582604535b3470a421b5fbd804ede238b3ca1b317ceb70519788236f381abfb6aa010d18412bd92a95747d92443c2c6c03502aa85916
7
+ data.tar.gz: 8a52118c6ee316ad497fbaa679e7a22e71416b2d6a32d3d38c61436fe8cf27e3ba30fcdc1fb903de6785f613446c215c8ce7c0e95171eb63d53b4244098e84eb
@@ -5,17 +5,23 @@ module Fastlane
5
5
  sh("git checkout -b #{params[:head_branch]}")
6
6
  sh('git restore Brewfile.lock.json || true')
7
7
  sh("git add #{params[:git_add]}")
8
- sh("git commit -m '#{params[:title]}'")
9
- other_action.push_to_git_remote(tags: false)
8
+ staged_files = sh('git diff --cached --name-only').split
9
+ if staged_files.empty?
10
+ unstaged_files = sh('git diff --name-only')
11
+ UI.important("There is nothing to commit. See unstaged files for more details:\n#{unstaged_files}")
12
+ else
13
+ sh("git commit -m '#{params[:title]}'")
14
+ other_action.push_to_git_remote(tags: false)
10
15
 
11
- other_action.create_pull_request(
12
- api_token: ENV.fetch('GITHUB_TOKEN'),
13
- repo: params[:github_repo],
14
- title: params[:title],
15
- head: params[:head_branch],
16
- base: params[:base_branch],
17
- body: 'This PR was created automatically by CI.'
18
- )
16
+ other_action.create_pull_request(
17
+ api_token: ENV.fetch('GITHUB_TOKEN'),
18
+ repo: params[:github_repo],
19
+ title: params[:title],
20
+ head: params[:head_branch],
21
+ base: params[:base_branch],
22
+ body: 'This PR was created automatically by CI.'
23
+ )
24
+ end
19
25
  end
20
26
 
21
27
  #####################################################
@@ -17,7 +17,7 @@ module Fastlane
17
17
  if params[:open_pr]
18
18
  other_action.pr_create(
19
19
  title: params[:pr_title],
20
- git_add: 'README.md',
20
+ git_add: params[:readme_path],
21
21
  head_branch: "ci/sdk-size-update-#{Time.now.to_i}"
22
22
  )
23
23
  end
@@ -1,5 +1,5 @@
1
1
  module Fastlane
2
2
  module StreamActions
3
- VERSION = '0.3.67'
3
+ VERSION = '0.3.68'
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fastlane-plugin-stream_actions
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.67
4
+ version: 0.3.68
5
5
  platform: ruby
6
6
  authors:
7
7
  - GetStream
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-09-06 00:00:00.000000000 Z
11
+ date: 2024-09-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: xctest_list