Skip to content

Commit

Permalink
formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
alduzy committed Nov 6, 2024
1 parent 835cca0 commit 22037c4
Showing 1 changed file with 34 additions and 34 deletions.
68 changes: 34 additions & 34 deletions .github/workflows/ios-podfiles-update.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
- 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

0 comments on commit 22037c4

Please sign in to comment.