Skip to content

Commit

Permalink
Also run on push to master
Browse files Browse the repository at this point in the history
  • Loading branch information
Koenvh1 committed Jan 6, 2025
1 parent a5ebf71 commit 940d596
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ name: Check files syntactically valid
on:
pull_request:
branches: ["master"]
push:
branches: ["master"]

# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
Expand Down Expand Up @@ -38,7 +40,7 @@ jobs:
for (const [key, value] of Object.entries(stations.stations)) {
for (const elem of value) {
if (!fs.existsSync("web/" + elem["logo"])) {
console.error(elem["logo"] + " missing!");
console.error("error: " + elem["logo"] + " missing!");
failed = true;
}
}
Expand All @@ -60,7 +62,7 @@ jobs:
for (const [key, value] of Object.entries(stations.stations)) {
for (const elem of value) {
if (!fs.existsSync("web/" + elem["logo"])) {
console.error(elem["logo"] + " missing!");
console.error("error: " + elem["logo"] + " missing!");
failed = true;
}
}
Expand Down

0 comments on commit 940d596

Please sign in to comment.