Skip to content

Commit

Permalink
Merge branch 'develop' into myk_dreamfort
Browse files Browse the repository at this point in the history
  • Loading branch information
myk002 committed May 17, 2023
2 parents 368a9fb + 2e1aae3 commit fb6c871
Show file tree
Hide file tree
Showing 17 changed files with 382 additions and 5,284 deletions.
30 changes: 30 additions & 0 deletions .github/workflows/clean-cache.yml
@@ -0,0 +1,30 @@
name: Clean up PR caches
on:
pull_request:
types:
- closed

jobs:
cleanup:
runs-on: ubuntu-latest
steps:
- name: Check out code
uses: actions/checkout@v3
- name: Cleanup
run: |
gh extension install actions/gh-actions-cache
REPO=${{ github.repository }}
BRANCH="refs/pull/${{ github.event.pull_request.number }}/merge"
echo "Fetching list of cache keys"
cacheKeysForPR=$(gh actions-cache list -R $REPO -B $BRANCH | cut -f 1)
set +e
echo "Deleting caches..."
for cacheKey in $cacheKeysForPR; do
gh actions-cache delete $cacheKey -R $REPO -B $BRANCH --confirm
done
echo "Done"
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
99 changes: 49 additions & 50 deletions data/orders/basic.json
@@ -1,31 +1,9 @@
[
{
"amount_left" : 150,
"amount_total" : 150,
"frequency" : "Monthly",
"id" : 0,
"is_active" : false,
"is_validated" : false,
"item_conditions" :
[
{
"condition" : "LessThan",
"flags" :
[
"unrotten"
],
"item_type" : "FOOD",
"value" : 400
}
],
"job" : "PrepareMeal",
"meal_ingredients" : 2
},
{
"amount_left" : 10,
"amount_total" : 10,
"frequency" : "Daily",
"id" : 1,
"id" : 0,
"is_active" : false,
"is_validated" : false,
"item_conditions" :
Expand All @@ -47,7 +25,7 @@
"unrotten",
"cookable"
],
"value" : 500
"value" : 80
},
{
"condition" : "AtMost",
Expand All @@ -57,15 +35,6 @@
],
"item_type" : "FOOD",
"value" : 3500
},
{
"condition" : "AtLeast",
"flags" :
[
"unrotten"
],
"item_type" : "FOOD",
"value" : 400
}
],
"job" : "PrepareMeal",
Expand All @@ -75,7 +44,7 @@
"amount_left" : 2,
"amount_total" : 2,
"frequency" : "Daily",
"id" : 2,
"id" : 1,
"is_active" : false,
"is_validated" : false,
"item_conditions" :
Expand Down Expand Up @@ -112,7 +81,7 @@
"amount_left" : 2,
"amount_total" : 2,
"frequency" : "Daily",
"id" : 3,
"id" : 2,
"is_active" : false,
"is_validated" : false,
"item_conditions" :
Expand Down Expand Up @@ -149,7 +118,7 @@
"amount_left" : 1,
"amount_total" : 1,
"frequency" : "Daily",
"id" : 4,
"id" : 3,
"is_active" : false,
"is_validated" : false,
"item_conditions" :
Expand All @@ -170,7 +139,7 @@
"amount_left" : 1,
"amount_total" : 1,
"frequency" : "Daily",
"id" : 5,
"id" : 4,
"is_active" : false,
"is_validated" : false,
"item_conditions" :
Expand Down Expand Up @@ -205,7 +174,7 @@
"amount_left" : 1,
"amount_total" : 1,
"frequency" : "Daily",
"id" : 6,
"id" : 5,
"is_active" : false,
"is_validated" : false,
"item_conditions" :
Expand Down Expand Up @@ -237,7 +206,7 @@
"amount_left" : 1,
"amount_total" : 1,
"frequency" : "Daily",
"id" : 7,
"id" : 6,
"is_active" : false,
"is_validated" : false,
"item_conditions" :
Expand Down Expand Up @@ -268,7 +237,7 @@
"amount_left" : 1,
"amount_total" : 1,
"frequency" : "Daily",
"id" : 8,
"id" : 7,
"is_active" : false,
"is_validated" : false,
"item_conditions" :
Expand All @@ -290,7 +259,7 @@
"amount_left" : 1,
"amount_total" : 1,
"frequency" : "Daily",
"id" : 9,
"id" : 8,
"is_active" : false,
"is_validated" : false,
"item_conditions" :
Expand Down Expand Up @@ -322,7 +291,7 @@
"amount_left" : 1,
"amount_total" : 1,
"frequency" : "Daily",
"id" : 10,
"id" : 9,
"is_active" : false,
"is_validated" : false,
"item_conditions" :
Expand Down Expand Up @@ -353,7 +322,7 @@
"amount_left" : 1,
"amount_total" : 1,
"frequency" : "Daily",
"id" : 11,
"id" : 10,
"is_active" : false,
"is_validated" : false,
"item_conditions" :
Expand Down Expand Up @@ -386,7 +355,7 @@
"amount_left" : 1,
"amount_total" : 1,
"frequency" : "Daily",
"id" : 12,
"id" : 11,
"is_active" : false,
"is_validated" : false,
"item_conditions" :
Expand Down Expand Up @@ -426,7 +395,7 @@
"amount_left" : 1,
"amount_total" : 1,
"frequency" : "Daily",
"id" : 13,
"id" : 12,
"is_active" : false,
"is_validated" : false,
"item_conditions" :
Expand All @@ -452,7 +421,7 @@
"amount_left" : 1,
"amount_total" : 1,
"frequency" : "Daily",
"id" : 14,
"id" : 13,
"is_active" : false,
"is_validated" : false,
"item_conditions" :
Expand Down Expand Up @@ -487,7 +456,7 @@
"amount_left" : 1,
"amount_total" : 1,
"frequency" : "Daily",
"id" : 15,
"id" : 14,
"is_active" : false,
"is_validated" : false,
"item_conditions" :
Expand Down Expand Up @@ -522,7 +491,7 @@
"amount_left" : 1,
"amount_total" : 1,
"frequency" : "Daily",
"id" : 16,
"id" : 15,
"is_active" : false,
"is_validated" : false,
"item_conditions" :
Expand Down Expand Up @@ -557,7 +526,7 @@
"amount_left" : 1,
"amount_total" : 1,
"frequency" : "Daily",
"id" : 17,
"id" : 16,
"is_active" : false,
"is_validated" : false,
"item_conditions" :
Expand Down Expand Up @@ -587,7 +556,7 @@
"amount_left" : 1,
"amount_total" : 1,
"frequency" : "Daily",
"id" : 18,
"id" : 17,
"is_active" : false,
"is_validated" : false,
"item_conditions" :
Expand Down Expand Up @@ -618,6 +587,36 @@
"job" : "MakeTool",
"material" : "INORGANIC"
},
{
"amount_left" : 1,
"amount_total" : 1,
"frequency" : "Daily",
"id" : 18,
"is_active" : false,
"is_validated" : false,
"item_conditions" :
[
{
"condition" : "AtLeast",
"item_type" : "WOOD",
"value" : 50
},
{
"condition" : "AtMost",
"flags" :
[
"empty"
],
"item_type" : "BIN",
"value" : 5
}
],
"job" : "ConstructBin",
"material_category" :
[
"wood"
]
},
{
"amount_left" : 1,
"amount_total" : 1,
Expand Down

0 comments on commit fb6c871

Please sign in to comment.