[RN][iOS][Releases] Bump Podfile.lock automatically #2
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: Prebuild iOS | |
on: | |
pull_request: | |
# workflow_call: # this directive allow us to call this workflow from other workflows | |
jobs: | |
bump-podfile-lock: | |
runs-on: macos-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
fetch-tags: true | |
- name: Configure git | |
run: | | |
git config --local user.email "[email protected]" | |
git config --local user.name "React Native Bot" | |
- name: Extract branch name | |
run: | | |
TAG=v0.79.0-rc.3 # "${{ github.ref_name }}"; | |
BRANCH_NAME=$(echo "$TAG" | sed -E 's/v([0-9]+\.[0-9]+)\.[0-9]+(-rc\.[0-9]+)?/\1-stable/') | |
echo "Branch Name is $BRANCH_NAME" | |
echo "BRANCH_NAME=$BRANCH_NAME" >> $GITHUB_ENV | |
- name: Checkout release branch | |
run: | | |
git checkout "$BRANCH_NAME" | |
git fetch | |
git pull origin "$BRANCH_NAME" | |
- name: Bump podfile.lock | |
run: | | |
cd packages/rn-tester | |
bundle install | |
bundle exec pod update hermes-engine --no-repo-update | |
- name: Commit changes | |
run: | | |
git add packages/rn-tester/Podfile.lock | |
git commit -m "[LOCAL] Bump Podfile.lock" | |
git push origin "$BRANCH_NAME" |