diff --git a/.github/workflows/ios-podfiles-update.yml b/.github/workflows/ios-podfiles-update.yml index fa86d6b526..e135a1080b 100644 --- a/.github/workflows/ios-podfiles-update.yml +++ b/.github/workflows/ios-podfiles-update.yml @@ -22,42 +22,42 @@ jobs: uses: actions/setup-node@v4 with: node-version: 18 - - name: Install CocoaPods - run: sudo gem install cocoapods - - name: Identify changed package.json files - id: changes - run: | - ROOT_CHANGED=false - EXAMPLE_CHANGED=false - FABRIC_CHANGED=false + - name: Install CocoaPods + run: sudo gem install cocoapods + - name: Identify changed package.json files + id: changes + run: | + ROOT_CHANGED=false + EXAMPLE_CHANGED=false + FABRIC_CHANGED=false - if git diff-tree --no-commit-id --name-only -r ${{ github.sha }} | grep -q '^package.json'; then - ROOT_CHANGED=true - fi + if git diff-tree --no-commit-id --name-only -r ${{ github.sha }} | grep -q '^package.json'; then + ROOT_CHANGED=true + fi - if git diff-tree --no-commit-id --name-only -r ${{ github.sha }} | grep -q '^Example/package.json'; then - EXAMPLE_CHANGED=true - fi + if git diff-tree --no-commit-id --name-only -r ${{ github.sha }} | grep -q '^Example/package.json'; then + EXAMPLE_CHANGED=true + fi - if git diff-tree --no-commit-id --name-only -r ${{ github.sha }} | grep -q '^FabricExample/package.json'; then - FABRIC_CHANGED=true - fi + if git diff-tree --no-commit-id --name-only -r ${{ github.sha }} | grep -q '^FabricExample/package.json'; then + FABRIC_CHANGED=true + fi - echo "ROOT_CHANGED=${ROOT_CHANGED}" >> $GITHUB_ENV - echo "EXAMPLE_CHANGED=${EXAMPLE_CHANGED}" >> $GITHUB_ENV - echo "FABRIC_CHANGED=${FABRIC_CHANGED}" >> $GITHUB_ENV + echo "ROOT_CHANGED=${ROOT_CHANGED}" >> $GITHUB_ENV + echo "EXAMPLE_CHANGED=${EXAMPLE_CHANGED}" >> $GITHUB_ENV + echo "FABRIC_CHANGED=${FABRIC_CHANGED}" >> $GITHUB_ENV - - name: Update Podfile in Example - if: env.ROOT_CHANGED == 'true' || env.EXAMPLE_CHANGED == 'true' - run: | - cd Example - yarn install - cd ios - pod install - - name: Update Podfile in FabricExample - if: env.ROOT_CHANGED == 'true' || env.FABRIC_CHANGED == 'true' - run: | - cd FabricExample - yarn install - cd ios - pod install \ No newline at end of file + - name: Update Podfile in Example + if: env.ROOT_CHANGED == 'true' || env.EXAMPLE_CHANGED == 'true' + run: | + cd Example + yarn install + cd ios + pod install + - name: Update Podfile in FabricExample + if: env.ROOT_CHANGED == 'true' || env.FABRIC_CHANGED == 'true' + run: | + cd FabricExample + yarn install + cd ios + pod install