Update Dependabot configuration for Bundler, Yarn/NPM and actions (#11877)
This commit is contained in:
parent
9ccd06bfa5
commit
d24a40944c
2 changed files with 19 additions and 41 deletions
22
.github/dependabot.yml
vendored
22
.github/dependabot.yml
vendored
|
|
@ -1,8 +1,24 @@
|
|||
# Set update schedule for GitHub Actions
|
||||
# https://docs.github.com/en/free-pro-team@latest/github/administering-a-repository/keeping-your-actions-up-to-date-with-dependabot
|
||||
# Update dependencies with Dependabot
|
||||
|
||||
version: 2
|
||||
updates:
|
||||
# Set update schedule for Ruby Bundler
|
||||
- package-ecosystem: "bundler"
|
||||
# Raise pull requests to update vendored dependencies that are checked in to the repository
|
||||
vendor: true
|
||||
directory: "/"
|
||||
schedule:
|
||||
interval: "daily"
|
||||
|
||||
# Set update schedule for Yarn/NPM
|
||||
- package-ecosystem: "npm"
|
||||
directory: "/"
|
||||
schedule:
|
||||
interval: "daily"
|
||||
|
||||
# Set update schedule for GitHub Actions
|
||||
# https://docs.github.com/en/free-pro-team@latest/github/administering-a-repository/keeping-your-actions-up-to-date-with-dependabot
|
||||
- package-ecosystem: "github-actions"
|
||||
directory: "/"
|
||||
schedule:
|
||||
interval: "weekly"
|
||||
interval: "daily"
|
||||
|
|
|
|||
38
.github/workflows/dependabot.yml
vendored
38
.github/workflows/dependabot.yml
vendored
|
|
@ -1,38 +0,0 @@
|
|||
# Adapted from https://gist.github.com/filipkis/fab89a09f54ffdd8e70c063755e7ce7f
|
||||
|
||||
name: Dependabot
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- 'dependabot/bundler/**'
|
||||
paths:
|
||||
- 'Gemfile.lock'
|
||||
jobs:
|
||||
update-gems:
|
||||
name: Update gems on Dependabot pull requests
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout code
|
||||
uses: actions/checkout@v2
|
||||
- name: Set up Ruby 2.7.2
|
||||
uses: ruby/setup-ruby@v1
|
||||
with:
|
||||
ruby-version: 2.7.2
|
||||
- name: Installing additional dependencies
|
||||
run: |
|
||||
sudo apt-get update
|
||||
sudo apt-get install postgresql-client libpq-dev libcurl4-openssl-dev
|
||||
- name: Run bundle install
|
||||
run: |
|
||||
gem install bundler
|
||||
bundle config set cache_all true
|
||||
bundle config cache_all_platforms true
|
||||
bundle install
|
||||
- name: Commit and push
|
||||
run: |
|
||||
git config --local user.email `git show -s --format='%ae'`
|
||||
git config --local user.name ${GITHUB_ACTOR}
|
||||
git remote add github "https://$GITHUB_ACTOR:$GITHUB_TOKEN@github.com/$GITHUB_REPOSITORY.git"
|
||||
git add .
|
||||
git commit -m "`git log --oneline --format=%B -n 1 HEAD | head -n 1` (Update vendor/cache)" || true
|
||||
git push github HEAD:${GITHUB_REF}
|
||||
Loading…
Add table
Reference in a new issue