-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add bump_internal_release.yml workflow
- Loading branch information
Showing
2 changed files
with
110 additions
and
2 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,57 @@ | ||
name: Bump Internal Release | ||
|
||
on: | ||
workflow_dispatch: | ||
inputs: | ||
asana-task-url: | ||
description: "Asana release task URL" | ||
required: true | ||
type: string | ||
|
||
jobs: | ||
|
||
increment_build_number: | ||
|
||
name: Increment Build Number | ||
|
||
runs-on: macos-13 | ||
timeout-minutes: 15 | ||
|
||
steps: | ||
|
||
- name: Assert release branch | ||
run: | | ||
case "${{ github.ref }}" in | ||
refs/heads/release/*) ;; | ||
*) echo "👎 Not a release branch"; exit 1 ;; | ||
esac | ||
- name: Check out the code | ||
uses: actions/checkout@v3 | ||
with: | ||
submodules: recursive | ||
|
||
- name: Select Xcode | ||
run: sudo xcode-select -s /Applications/Xcode_$(<.xcode-version).app/Contents/Developer | ||
|
||
- name: Prepare fastlane | ||
run: bundle install | ||
|
||
- name: Install xcbeautify | ||
continue-on-error: true | ||
run: brew install xcbeautify | ||
|
||
- name: Increment build number | ||
env: | ||
APPLE_API_KEY_BASE64: ${{ secrets.APPLE_API_KEY_BASE64 }} | ||
APPLE_API_KEY_ID: ${{ secrets.APPLE_API_KEY_ID }} | ||
APPLE_API_KEY_ISSUER: ${{ secrets.APPLE_API_KEY_ISSUER }} | ||
run: | | ||
git config --global user.name "Dax the Duck" | ||
git config --global user.email "[email protected]" | ||
bundle exec fastlane bump_internal_release | ||
- name: Prepare new release | ||
uses: ./.github/workflows/release.yml | ||
with: | ||
asana-task-url: ${{ github.event.inputs.asana-task-url }} |
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