diff --git a/lib/plugins/environments.js b/lib/plugins/environments.js index 4d064746..172e53c2 100644 --- a/lib/plugins/environments.js +++ b/lib/plugins/environments.js @@ -167,7 +167,7 @@ module.exports = class Environments extends Diffable { for (const variable of attrs.variables) { const existingVariable = existingVariables.find((_var) => _var.name === variable.name) if (existingVariable) { - existingVariables = existingVariables.filter(_var => _var.name !== variable.name) + existingVariables = existingVariables.filter(_var => _var.name === variable.name) if (existingVariable.value !== variable.value) { await this.github.request('PATCH /repos/:org/:repo/environments/:environment_name/variables/:variable_name', { org: this.repo.owner,