forked from fastlane/fastlane
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'fastlane:master' into master
- Loading branch information
Showing
75 changed files
with
978 additions
and
692 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
name: Create Tag Version on Bump Merge | ||
|
||
on: | ||
pull_request: | ||
types: [closed] | ||
|
||
jobs: | ||
version_bump: | ||
if: github.event.pull_request.merged == true && startsWith(github.event.pull_request.head.ref, 'version-bump-2.221.0-') | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v2 | ||
|
||
- name: Read gem version | ||
id: read_version | ||
run: | | ||
gemspec_file=$(ls *.gemspec) | ||
version=$(grep -E "spec.version\s*=\s*['\"][0-9]+\.[0-9]+\.[0-9]+['\"]" $gemspec_file | grep -o -E "[0-9]+\.[0-9]+\.[0-9]+") | ||
echo "version=$version" >> $GITHUB_ENV | ||
- name: Create Tag | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
run: | | ||
git tag -a v${{ env.version }} -m "Version ${{ env.version }}" | ||
git push origin --tags |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
--- | ||
name: Release Step 1 - Create Version Bump | ||
|
||
on: | ||
workflow_dispatch: | ||
inputs: | ||
bump_type: | ||
description: 'Bump type' | ||
required: true | ||
type: choice | ||
options: | ||
- patch | ||
- minor | ||
- major | ||
|
||
permissions: | ||
contents: write | ||
pull-requests: write | ||
|
||
jobs: | ||
create_version_bump: | ||
runs-on: macos-latest | ||
|
||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v3 | ||
|
||
- name: Set up Ruby | ||
uses: ruby/setup-ruby@v1 | ||
with: | ||
ruby-version: 3.2 | ||
|
||
- name: Install fastlane | ||
run: bundle install | ||
|
||
- name: Run fastlane bump | ||
run: | | ||
git config --global user.email "41898282+github-actions[bot]@users.noreply.github.com" | ||
git config --global user.name "github-actions[bot]" | ||
bundle exec fastlane bump bump_type:${{ github.event.inputs.bump_type }} | ||
env: | ||
GITHUB_USER_NAME: fastlane # Todo: This is needed for docs - remove somehow | ||
GITHUB_API_TOKEN: ${{ secrets.GITHUB_TOKEN }} # Todo: This is needed for docs - remove somehow | ||
GITHUB_API_BEARER: ${{ secrets.GITHUB_TOKEN }} | ||
FL_GITHUB_RELEASE_API_BEARER: ${{ secrets.GITHUB_TOKEN }} | ||
FL_CHANGELOG_SLEEP: 10 | ||
FASTLANE_XCODEBUILD_SETTINGS_TIMEOUT: 180 | ||
FASTLANE_XCODEBUILD_SETTINGS_RETRIES: 5 | ||
|
55 changes: 55 additions & 0 deletions
55
.github/workflows/release_step_2_create_github_release.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
--- | ||
name: Release Step 2 - Create GitHub Release | ||
|
||
on: | ||
push: | ||
tags: | ||
- '*' | ||
workflow_dispatch: | ||
inputs: | ||
skip_github_packages: | ||
description: 'Skip pushing to GitHub Packages' | ||
required: true | ||
default: false | ||
type: boolean | ||
skip_rubygems: | ||
description: 'Skip pushing to RubyGems' | ||
required: true | ||
default: false | ||
type: boolean | ||
|
||
jobs: | ||
create_github_release: | ||
runs-on: macos-latest | ||
|
||
permissions: | ||
contents: write | ||
id-token: write | ||
|
||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v3 | ||
|
||
- name: Set up Ruby | ||
uses: ruby/setup-ruby@v1 | ||
with: | ||
ruby-version: '3.2' | ||
|
||
- name: Install fastlane | ||
run: bundle install | ||
|
||
- uses: rubygems/[email protected] | ||
|
||
- name: Configure GitHub Packages config | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
run: | | ||
mkdir -p ~/.gem | ||
echo ":github: Bearer $GITHUB_TOKEN" > ~/.gem/credentials | ||
chmod 0600 ~/.gem/credentials | ||
- name: Run fastlane | ||
env: | ||
FASTLANE_RELEASE_API_BEARER: ${{ secrets.GITHUB_TOKEN }} | ||
run: | | ||
bundle exec fastlane create_github_release skip_github_packages:${{ github.event.inputs.skip_github_packages }} skip_rubygems:${{ github.event.inputs.skip_rubygems }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
* [action][sh] fastlane sh with log set to false should respect a step name (#22151) via Daniel Jankowski (@mollyIV) | ||
* [scan][trainer] hotfix for float-type version acquisition of `xcresulttool version` fails (#22157) via David Dongkyu Kim (@dokimyj) | ||
* [gym] fix default result bundle path name (#22154) via Ignacio Calderon (@kronenthaler) | ||
* [scan][trainer] hotfix for xcresulttool spec changes >= XC16b3 (#22147) via David Dongkyu Kim (@dokimyj) | ||
* [action][ensure_git_status_clean] support empty spaces in `ignore_files` file paths (#21566) via Daniel Jankowski (@mollyIV) | ||
* [spaceship] add visionOS support for Connect API (#22032) via Frederik Seiffert (@triplef) | ||
* [spaceship] Add get app availabilities v2 request (#21901) via Lukasz Grabowski (@lucgrabowski) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.