Skip to content

Commit

Permalink
Test
Browse files Browse the repository at this point in the history
  • Loading branch information
Egor Egorov committed Dec 13, 2024
1 parent e1e657e commit efd54ab
Show file tree
Hide file tree
Showing 3 changed files with 55 additions and 29 deletions.
58 changes: 29 additions & 29 deletions .github/workflows/prepare-xcframework-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -93,34 +93,34 @@ jobs:
shell: bash

- name: Create Pull Request
uses: peter-evans/create-pull-request@v6
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
branch: "release/xcf/${{ steps.fetch_semver.outputs.semver}}"
title: 'GliaWidgets SDK Release ${{ steps.fetch_semver.outputs.semver}}'
commit-message: |
GliaWidgets SDK XCFramework Release ${{ steps.fetch_semver.outputs.semver}}
base: 'master'
run: |
release_branch_name="release/xcf/${{ steps.fetch_semver.outputs.semver}}"
fastlane ios create_pr branch:"$release_branch_name" title:"GliaWidgets SDK XCFramework Release ${{ steps.fetch_semver.outputs.semver}}" base:'master'
- uses: actions/create-release@v1
id: create_release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ steps.fetch_semver.outputs.semver}}
release_name: "GliaWidgetsSDK Release ${{ steps.fetch_semver.outputs.semver}}"
draft: true
prerelease: false
body: |
GliaWidgetsSDK Release
xcframework checksum: `${{ steps.calculate_xcf_checksum.outputs.checksum }}`
# with:
# branch: "release/xcf/${{ steps.fetch_semver.outputs.semver}}"
# title: "GliaWidgets SDK XCFramework Release ${{ steps.fetch_semver.outputs.semver}}"
# base: 'master'
# token: ${{ secrets.GITHUB_TOKEN }}

- uses: actions/[email protected]
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: "xcf/GliaWidgetsXcf.xcframework.zip"
asset_name: "GliaWidgetsXcf.xcframework.zip"
asset_content_type: "application/zip"
# - uses: actions/create-release@v1
# id: create_release
# env:
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# with:
# tag_name: ${{ steps.fetch_semver.outputs.semver}}
# release_name: "GliaWidgetsSDK Release ${{ steps.fetch_semver.outputs.semver}}"
# draft: true
# prerelease: false
# body: |
# GliaWidgetsSDK Release
# xcframework checksum: `${{ steps.calculate_xcf_checksum.outputs.checksum }}`
#
# - uses: actions/[email protected]
# env:
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# with:
# upload_url: ${{ steps.create_release.outputs.upload_url }}
# asset_path: "xcf/GliaWidgetsXcf.xcframework.zip"
# asset_name: "GliaWidgetsXcf.xcframework.zip"
# asset_content_type: "application/zip"
18 changes: 18 additions & 0 deletions fastlane/Fastfile
Original file line number Diff line number Diff line change
Expand Up @@ -117,4 +117,22 @@ platform :ios do

sh("bash ../scripts/update_core_sdk_version.sh '#{project_version}' '#{core_sdk_version}' '#{core_sdk_checksum}'")
end

desc "Creates a pull request in the repository."
lane :create_pr do |options|
sh "git fetch"
sh "git checkout release/xcf/2.8.3"

branch_name = options[:branch]
title = options[:title]
base = options[:base]

create_pull_request(
repo: 'salemove/ios-sdk-widgets',
title: title,
head: branch_name,
base: base,
team_reviewers: []
)
end
end
8 changes: 8 additions & 0 deletions fastlane/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,14 @@ Creates a pull request in the repository with whatever changes have been made. U

Creates a pull request in the repository with updates to Core SDK version.

### ios create_pr

```sh
[bundle exec] fastlane ios create_pr
```

Creates a pull request in the repository.

----

This README.md is auto-generated and will be re-generated every time [_fastlane_](https://fastlane.tools) is run.
Expand Down

0 comments on commit efd54ab

Please sign in to comment.