Skip to content

Commit 92f3586

Browse files
committed
Fix existing existing environment variable filter
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]>
1 parent a466194 commit 92f3586

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/plugins/environments.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -301,7 +301,7 @@ module.exports = class Environments extends Diffable {
301301
)
302302
if (existingVariable) {
303303
existingVariables = existingVariables.filter(
304-
(_var) => _var.name !== variable.name
304+
(_var) => _var.name === variable.name
305305
)
306306
if (existingVariable.value !== variable.value) {
307307
await this.github.request(

0 commit comments

Comments
 (0)