Skip to content

Commit

Permalink
Create update-ios-pods.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
josxha committed Apr 29, 2024
1 parent a42bbbc commit 0f5f6fb
Showing 1 changed file with 36 additions and 0 deletions.
36 changes: 36 additions & 0 deletions .github/workflows/update-ios-pods.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: Update iOS CocoaPods
on:
workflow_dispatch:
jobs:
update-pods:
runs-on: macos-latest
name: pod update
steps:
- name: Checkout project
uses: actions/checkout@v4
- name: Setup Flutter
uses: subosito/flutter-action@v2
with:
flutter-version: '3.x'
- name: Get Flutter dependencies
working-directory: wakelock_plus/ios
run: flutter pub get
- name: Update CocoaPods
working-directory: wakelock_plus/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 "[email protected]" && \
git config --global user.name "Github CI" && \
git commit -a -m "pod update" && \
git push

0 comments on commit 0f5f6fb

Please sign in to comment.