You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add support to depreman to ingest a configuration object from the environment.
The main use case I envision for this is that a user runs depreman in their CI on a regular schedule for their latest release (with the goal of knowing when a new release is necessary due to a deprecated dependency). But sometimes a deprecated dependency does not warrant a new release, hence you'd want to instruct depreman to ignore it. But in this scenario you can't push a commit with an updated depreman config because then it wouldn't be the release commit anymore. Hence you'd need some alternative way to do this.
For example, with GitHub Actions one could specify the config as a vars variable and provide it to Depreman as an env variable.
The text was updated successfully, but these errors were encountered:
The following approach is recommended for CI setups for the time being:
# Load the configuration for the GitHub Actions variables# that can be configured in the repository settings. Use# 'tee' so that you can see what configuration was used in# the logs at a later point in time (useful if you make# changes).
- name: Insert custom configurationenv:
NDMRC: ${{ vars.NDMRC }}run: echo "${NDMRC}" | tee .ndmrc# And then just use depreman as usual, e.g.
- name: Audit deprecation warningsrun: npx depreman --errors-only
Add support to
depreman
to ingest a configuration object from the environment.The main use case I envision for this is that a user runs
depreman
in their CI on a regular schedule for their latest release (with the goal of knowing when a new release is necessary due to a deprecated dependency). But sometimes a deprecated dependency does not warrant a new release, hence you'd want to instructdepreman
to ignore it. But in this scenario you can't push a commit with an updateddepreman
config because then it wouldn't be the release commit anymore. Hence you'd need some alternative way to do this.For example, with GitHub Actions one could specify the config as a
vars
variable and provide it to Depreman as anenv
variable.The text was updated successfully, but these errors were encountered: