You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: CHANGELOG.md
+1Lines changed: 1 addition & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -11,6 +11,7 @@ _None_
11
11
### New Features
12
12
13
13
- Added `find_or_create_pull_request` action and `GithubHelper#find_pull_request`: returns the URL of the open Pull Request for a head branch, creating one only if none exists yet. Useful for "rolling" automations (e.g. a daily translations or dependency-update job) that force-push the same head branch on every run. [#733]
14
+
- Added `upload_github_release_assets` action and `GithubHelper#upload_release_assets` to upload or retry replacing assets on an existing GitHub release without disturbing unrelated assets. [#743]
UI.success("Successfully uploaded GitHub Release assets. You can see the release at '#{url}'")
26
+
url
27
+
end
28
+
29
+
defself.description
30
+
'Uploads assets to an existing GitHub Release'
31
+
end
32
+
33
+
defself.authors
34
+
['Automattic']
35
+
end
36
+
37
+
defself.return_value
38
+
'The URL of the GitHub Release'
39
+
end
40
+
41
+
defself.details
42
+
'Uploads assets to an existing GitHub Release. By default, existing release assets with matching filenames are replaced; when replace_existing is false, matching assets cause the action to fail.'
43
+
end
44
+
45
+
defself.available_options
46
+
[
47
+
FastlaneCore::ConfigItem.new(key: :repository,
48
+
env_name: 'GHHELPER_REPOSITORY',
49
+
description: 'The slug (`<org>/<repo>`) of the GitHub repository containing the release',
50
+
optional: false,
51
+
type: String,
52
+
verify_block: procdo |value|
53
+
UI.user_error!('Repository cannot be empty')ifvalue.to_s.empty?
end.toraise_error(FastlaneCore::Interface::FastlaneError,"GitHub Release #{test_version} already has an asset named test-app.zip. Set replace_existing: true to replace it.")
0 commit comments