Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature/#8 add ci task to check if the generated api is outdated #12

Merged
8 changes: 8 additions & 0 deletions .github/workflows/check-api-outdated.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,14 @@
name: Check if OpenAPI is Outdated

on:
push:
branches-ignore:
- "github-pages/*"
- "gh-pages/*"
- "main"
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why shouldn't it run on main

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I copied the code from ci.yml which was generated by PTB.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think the intention is to run checks only once (on the branch) but not another time (after merging).

- "master"
pull_request:
types: [opened, reopened]
ckunki marked this conversation as resolved.
Show resolved Hide resolved
workflow_dispatch:
schedule:
# “At 4 am on every day.” (https://crontab.guru)
Expand Down
Loading