Update repository #380
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: Update repository | |
on: | |
workflow_dispatch: | |
schedule: | |
- cron: '0 0 * * *' | |
jobs: | |
updater: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout 🛎 | |
uses: actions/checkout@v3 | |
- uses: ruby/setup-ruby@v1 | |
with: | |
bundler-cache: true | |
- name: Unset deployment mode | |
run: bundle config unset deployment | |
- name: Update project | |
run: bundle update | |
- name: Configure git author | |
run: | | |
git config user.name "GitHub Actions[bot]" | |
git config user.email "github-actions[bot]@users.noreply.github.com" | |
- name: commit | |
run: | | |
git add . | |
git commit -am "Auto updated packages" && git push || echo "No changes to commit" |