Skip to content

Commit

Permalink
Add new environment variable DEPENDABOT for users
Browse files Browse the repository at this point in the history
  • Loading branch information
shu-mutou authored and jurre committed Jun 20, 2023
1 parent c5a3184 commit b12d34f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions Dockerfile.updater-core
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,9 @@ USER dependabot
ENV DEPENDABOT_HOME="/home/dependabot"
WORKDIR $DEPENDABOT_HOME

# For users to determine if dependabot is running
ENV DEPENDABOT=true

# Disable automatic pulling of files stored with Git LFS
# This avoids downloading large files not necessary for the dependabot scripts
ENV GIT_LFS_SKIP_SMUDGE=1
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ may be useful for advanced users looking for examples of how to hack on Dependab

## Dependabot on CI

In an environment such as GitHub where Dependabot is running in a container, if you want to change your build or installation process depending on whether Dependabot is checking, you can determine it by the existence of `DEPENDABOT_HOME` environment variable.
In an environment such as GitHub where Dependabot is running in a container, if you want to change your build or installation process depending on whether Dependabot is checking, you can determine it by the existence of `DEPENDABOT` environment variable.

# Contributing to Dependabot

Expand Down

0 comments on commit b12d34f

Please sign in to comment.