Bump Internal Release #7
Workflow file for this run
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
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: 60 | ||
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: Set cache key hash | ||
run: | | ||
has_only_tags=$(jq '[ .pins[].state | has("version") ] | all' DuckDuckGo.xcodeproj/project.xcworkspace/xcshareddata/swiftpm/Package.resolved) | ||
if [[ "$has_only_tags" == "true" ]]; then | ||
echo "cache_key_hash=${{ hashFiles('DuckDuckGo.xcodeproj/project.xcworkspace/xcshareddata/swiftpm/Package.resolved') }}" >> $GITHUB_ENV | ||
else | ||
echo "Package.resolved contains dependencies specified by branch or commit, skipping cache." | ||
fi | ||
- name: Cache SPM | ||
if: env.cache_key_hash | ||
uses: actions/cache@v3 | ||
with: | ||
path: DerivedData/SourcePackages | ||
key: ${{ runner.os }}-spm-Non-Sandbox-${{ env.cache_key_hash }} | ||
restore-keys: | | ||
${{ runner.os }}-spm-Non-Sandbox | ||
- 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 | ||
prepare_release: | ||
needs: increment_build_number | ||
uses: ./.github/workflows/release.yml | ||
Check failure on line 74 in .github/workflows/bump_internal_release.yml GitHub Actions / Bump Internal ReleaseInvalid workflow file
|
||
with: | ||
asana-task-url: ${{ github.event.inputs.asana-task-url }} |