This repository has been archived by the owner on Nov 6, 2024. It is now read-only.
Update package dependencies #599
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 package dependencies | |
on: | |
schedule: | |
- cron: '0 1 * * *' | |
jobs: | |
update-dependencies: | |
name: Update dependencies | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
with: | |
repository: DFE-Digital/early-careers-framework | |
- name: Setup Ruby | |
uses: ruby/[email protected] | |
with: | |
bundler-cache: true | |
ruby-version: '3.2.2' | |
- name: Unlock bundler | |
run: bundle config unset deployment | |
- name: Run bundler update | |
run: bundle update | |
- name: Build docs with middleman | |
run: make build | |
- name: Push | |
run: | | |
git config user.name github-actions | |
git config user.email [email protected] | |
git add . | |
git commit -m "Updated dependency packages" | |
git pull --rebase | |
git push |