Skip to content

Commit

Permalink
Use Dependabot to update submodules (#972)
Browse files Browse the repository at this point in the history
* Dependabot: Automatically open pull requests to update submodules

* Remove automatic commits
  • Loading branch information
remibetin authored Mar 6, 2025
1 parent d3f3a75 commit ea7b283
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 13 deletions.
15 changes: 15 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# To get started with Dependabot version updates, you'll need to specify which
# package ecosystems to update and where the package manifests are located.
# Please see the documentation for all configuration options:
# https://docs.github.com/code-security/dependabot/dependabot-version-updates/configuration-options-for-the-dependabot.yml-file

version: 2
updates:
- package-ecosystem: "gitsubmodule"
directory: "/"
schedule:
interval: "daily"
# Check for submodules updates at 7am UTC
time: "07:00"
labels:
- "submodules"
3 changes: 0 additions & 3 deletions .github/workflows/build-only.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,6 @@ jobs:
with:
ruby-version: 3.3.3
bundler-cache: true # runs 'bundle install' and caches installed gems automatically
- name: Update Externals
run: |
git submodule update --init --remote
- name: Build and test with Jekyll
run: |
bundle exec jekyll build --verbose --trace --config "_config.yml,_config_prod.yml" --profile
Expand Down
8 changes: 0 additions & 8 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,14 +22,6 @@ jobs:
with:
ruby-version: '3.3.3' # matches Netlify of ruby version
bundler-cache: true # runs 'bundle install' and caches installed gems automatically
- name: Update Externals
run: |
git submodule update --remote
- name: Commit changed files
uses: stefanzweifel/git-auto-commit-action@v5
with:
commit_message: Apply automatic changes
branch: main
- name: Build and test with Jekyll
run: |
export WAI_LIVE_SITE=true
Expand Down
4 changes: 2 additions & 2 deletions netlify.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[context.production]
# Applies to the staging environment, generated from the `main` branch.
command = "git submodule update --init --remote && npm install && bundle exec jekyll build --profile --trace --config '_config.yml,_config_staging.yml'"
# with debugging: command = "git submodule update --init --remote && bundle exec jekyll build --verbose --trace --config '_config.yml,_config_staging.yml'"
command = "npm install && bundle exec jekyll build --profile --trace --config '_config.yml,_config_staging.yml'"
# with debugging: command = "npm install && bundle exec jekyll build --verbose --trace --config '_config.yml,_config_staging.yml'"

[context.deploy-preview]
# Applies to deploy previews, generated from pull requests.
Expand Down

0 comments on commit ea7b283

Please sign in to comment.