[Code Quality] Update Bundler #153
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: "[Code Quality] Update Bundler" | |
on: | |
schedule: | |
- cron: "0 7 * * 3" | |
workflow_dispatch: | |
jobs: | |
update_bundler: | |
runs-on: ubuntu-latest | |
steps: | |
- name: 'Checkout repo' | |
uses: actions/checkout@v3 | |
with: | |
token: ${{ secrets.GH_ACTIONS_PAT }} | |
- uses: ruby/setup-ruby@v1 | |
with: | |
ruby-version: '3.1' | |
- name: 'Run update script for android files' | |
run: | | |
bundle update --all | |
bundle exec fastlane update_plugins | |
working-directory: VAMobile/android/ | |
- name: 'Run update script for ios files' | |
run: | | |
bundle update --all | |
bundle exec fastlane update_plugins | |
working-directory: VAMobile/ios/ | |
- name: 'Push any changes to remote' | |
run: | | |
if [[ -n $(git status --porcelain --untracked-files=no) ]] | |
then | |
echo 'There are changes in git' | |
git status --porcelain | |
git config --global user.name 'VA Automation Bot' | |
git config --global user.email '[email protected]' | |
git add -A | |
git commit -m "Automated bundler and fastlane updates" | |
git push -u origin HEAD | |
else | |
echo 'There are no changes to the lock files or plugins' | |
fi | |