Disable Knapsack only to Github workflow

This commit is contained in:
Pau Perez
2021-03-09 16:13:08 +01:00
parent 838563a80b
commit c61fc25e9f
2 changed files with 6 additions and 1 deletions

View File

@@ -4,6 +4,9 @@ on:
workflow_dispatch:
push:
env:
DISABLE_KNAPSACK: true
jobs:
test-models:
runs-on: ubuntu-18.04

View File

@@ -8,4 +8,6 @@ require_relative 'config/application'
Openfoodnetwork::Application.load_tasks
Knapsack.load_tasks if defined?(Knapsack)
unless ENV['DISABLE_KNAPSACK']
Knapsack.load_tasks if defined?(Knapsack)
end