Skip to content

Update iOS CocoaPods #4

Update iOS CocoaPods

Update iOS CocoaPods #4

name: Update iOS CocoaPods
on:
workflow_dispatch:
permissions:
id-token: write
jobs:
update-pods:
runs-on: macos-latest
name: pod update
defaults:
run:
working-directory: ./example
steps:
- name: Checkout project
uses: actions/checkout@v4
- name: Setup Flutter
uses: subosito/flutter-action@v2
with:
cache: true
- name: Get Flutter dependencies
run: flutter pub get
- name: Update CocoaPods
working-directory: ./example/ios
run: |
pod repo update && \
pod update
- name: Check difference
run: |
git add --all . && \
status=$(git status -s .) && \
echo $status && \
echo "GIT_STATUS=${status//$'\n'/\\n}" >> $GITHUB_ENV
- name: Push changes
if: "contains(env.GIT_STATUS, 'ios')"
run: |
git add --all . && \
git config --global user.email "action@github.com" && \
git config --global user.name "Github CI" && \
git commit -a -m "pod update" && \
git push