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
263 changed files
with
4,690 additions
and
1,593 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
#!/usr/bin/env ruby | ||
file = File.join(__dir__, "..", "Gemfile.lock") | ||
lines = File.read(file).split("\n") | ||
idx = lines.index { |l| l == "BUNDLED WITH" } | ||
puts lines[idx + 1].strip |
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,27 @@ | ||
#!/usr/bin/env ruby | ||
# | ||
# prints out the latest version number of the gem compatible with the given version of ruby | ||
# | ||
require 'net/http' | ||
require 'json' | ||
|
||
GEM_TO_TEST = "rubygems-update" | ||
|
||
if ARGV.count > 0 | ||
RUBY_VERSION_TO_MATCH = ARGV[0] | ||
else | ||
RUBY_VERSION_TO_MATCH = RUBY_VERSION | ||
end | ||
|
||
API_URL = "https://rubygems.org/api/v1/versions/#{GEM_TO_TEST}.json" | ||
|
||
# Load list of all available versions of GEM_TO_TEST | ||
gem_versions = JSON.parse(Net::HTTP.get(URI(API_URL))) | ||
|
||
# Process list to find matching Ruby version | ||
matching_gem = gem_versions.find { |gem| | ||
Gem::Dependency.new('', gem['ruby_version']). | ||
match?('', RUBY_VERSION_TO_MATCH) | ||
} | ||
|
||
puts matching_gem['number'] |
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,103 @@ | ||
# Configuration file for https://github.com/actions/labeler | ||
|
||
"tool: action": | ||
- changed-files: | ||
- any-glob-to-any-file: | ||
- fastlane/lib/fastlane/actions/**/* | ||
|
||
"tool: cert": | ||
- changed-files: | ||
- any-glob-to-any-file: | ||
- cert/**/* | ||
|
||
"tool: deliver": | ||
- changed-files: | ||
- any-glob-to-any-file: | ||
- deliver/**/* | ||
|
||
"tool: fastlane_core": | ||
- changed-files: | ||
- any-glob-to-any-file: | ||
- fastlane_core/**/* | ||
|
||
"tool: frameit": | ||
- changed-files: | ||
- any-glob-to-any-file: | ||
- frameit/**/* | ||
|
||
"tool: gym": | ||
- changed-files: | ||
- any-glob-to-any-file: | ||
- gym/**/* | ||
|
||
"tool: match": | ||
- changed-files: | ||
- any-glob-to-any-file: | ||
- match/**/* | ||
|
||
"tool: pem": | ||
- changed-files: | ||
- any-glob-to-any-file: | ||
- pem/**/* | ||
|
||
"tool: pilot": | ||
- changed-files: | ||
- any-glob-to-any-file: | ||
- pilot/**/* | ||
|
||
"tool: precheck": | ||
- changed-files: | ||
- any-glob-to-any-file: | ||
- precheck/**/* | ||
|
||
"tool: produce": | ||
- changed-files: | ||
- any-glob-to-any-file: | ||
- produce/**/* | ||
|
||
"tool: scan": | ||
- changed-files: | ||
- any-glob-to-any-file: | ||
- scan/**/* | ||
|
||
"tool: screengrab": | ||
- changed-files: | ||
- any-glob-to-any-file: | ||
- screengrab/**/* | ||
|
||
"tool: sigh": | ||
- changed-files: | ||
- any-glob-to-any-file: | ||
- sigh/**/* | ||
|
||
"tool: snapshot": | ||
- changed-files: | ||
- any-glob-to-any-file: | ||
- snapshot/**/* | ||
|
||
"tool: spaceship": | ||
- changed-files: | ||
- any-glob-to-any-file: | ||
- spaceship/**/* | ||
|
||
"tool: supply": | ||
- changed-files: | ||
- any-glob-to-any-file: | ||
- supply/**/* | ||
|
||
"topic: swift": | ||
- changed-files: | ||
- any-glob-to-any-file: | ||
- fastlane/swift/**/* | ||
|
||
"tool: trainer": | ||
- changed-files: | ||
- any-glob-to-any-file: | ||
- trainer/**/* | ||
|
||
"type: ci": | ||
- changed-files: | ||
- any-glob-to-any-file: | ||
- .github/**/* | ||
- .circleci/**/* | ||
- appveyor.yml |
File renamed without changes.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
--- | ||
name: Deploy to RubyGems | ||
on: | ||
release: | ||
types: | ||
- published | ||
workflow_dispatch: | ||
|
||
jobs: | ||
deploy-to-rubygems: | ||
name: Deploy to RubyGems | ||
runs-on: ubuntu-latest | ||
permissions: | ||
contents: write | ||
id-token: write | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Set up Ruby | ||
uses: ruby/setup-ruby@v1 | ||
with: | ||
bundler-cache: true | ||
ruby-version: '3.2' | ||
- uses: rubygems/release-gem@v1 |
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,16 @@ | ||
name: "Pull Request Labeler" | ||
on: | ||
pull_request_target: | ||
types: | ||
- opened | ||
- synchronize # Add labels when PR receives new commits, which may modify the files in the PR | ||
- reopened | ||
|
||
jobs: | ||
labeler: | ||
permissions: | ||
contents: read | ||
pull-requests: write | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/labeler@v5 |
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 | ||
|
Oops, something went wrong.