Skip to content

Commit

Permalink
Fix existing existing environment variable filter
Browse files Browse the repository at this point in the history
This boolean was reversed when filtering existing variables,
so it consistently sent a POST request to existing vars.

Signed-off-by: Kyle Harding <[email protected]>
  • Loading branch information
klutchell committed Dec 20, 2024
1 parent f80e3ed commit 2d67cfd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/plugins/environments.js
Original file line number Diff line number Diff line change
Expand Up @@ -301,7 +301,7 @@ module.exports = class Environments extends Diffable {
)
if (existingVariable) {
existingVariables = existingVariables.filter(
(_var) => _var.name !== variable.name
(_var) => _var.name === variable.name
)
if (existingVariable.value !== variable.value) {
await this.github.request(
Expand Down

0 comments on commit 2d67cfd

Please sign in to comment.