Skip to content

Commit d9d9bd2

Browse files
authored
Fix context in data sources. (#221)
Some data sources added recently were missing `context: {}`. Unfortunately, for some reason I haven't looked into yet, this is not a problem locally while it is in SAAS.
1 parent aa69c95 commit d9d9bd2

File tree

3 files changed

+3
-1
lines changed

3 files changed

+3
-1
lines changed

.github/workflows/update.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ jobs:
7171
BEFORE_FILE="before_files/$FILE"
7272
AFTER_FILE="$FILE"
7373
74-
if [ -f "$BEFORE_FILE" ]; then
74+
if [ -f "$BEFORE_FILE" ] && [ grep "type: rule-type" "$BEFORE_FILE" ]; then
7575
echo "Running ruletype validate-update command for $BEFORE_FILE and $AFTER_FILE..."
7676
# Run the go command with the before and after files
7777
dev ruletype validate-update --before "$BEFORE_FILE" --after "$AFTER_FILE"

data-sources/ghapi.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
version: v1
22
type: data-source
33
name: ghapi
4+
context: {}
45
rest:
56
def:
67
license:

data-sources/osi.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
version: v1
22
type: data-source
33
name: osi
4+
context: {}
45
rest:
56
def:
67
licenses:

0 commit comments

Comments
 (0)