Skip to content

[CI] Correctly retrieve a git branch on CI #60

[CI] Correctly retrieve a git branch on CI

[CI] Correctly retrieve a git branch on CI #60

name: SDK Size
on:
pull_request:
workflow_dispatch:
push:
branches:
- develop
env:
HOMEBREW_NO_INSTALL_CLEANUP: 1 # Disable cleanup for homebrew, we don't need it on CI
jobs:
sdk_size:
name: Metrics
runs-on: macos-14
env:
GITHUB_TOKEN: '${{ secrets.CI_BOT_GITHUB_TOKEN }}'
steps:
- name: Install Bot SSH Key
uses: webfactory/[email protected]
with:
ssh-private-key: ${{ secrets.BOT_SSH_PRIVATE_KEY }}
# - uses: actions/[email protected]
# - uses: ./.github/actions/bootstrap
# - name: Get branch name
# id: get_branch_name
# run: echo "branch=${GITHUB_REF#refs/heads/}" >> $GITHUB_OUTPUT
# - name: Run SDK Size Metrics
# run: bundle exec fastlane show_frameworks_sizes
# timeout-minutes: 30
# env:
# BRANCH_NAME: ${{ steps.get_branch_name.outputs.branch }}
# GITHUB_PR_NUM: ${{ github.event.pull_request.number }}
# GITHUB_EVENT_NAME: ${{ github.event_name }}
# MATCH_PASSWORD: ${{ secrets.MATCH_PASSWORD }}
# APPSTORE_API_KEY: ${{ secrets.APPSTORE_API_KEY }}