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

✨ Prevent CI workflows from running on a latest changes commit, add [skip ci] to commit message #76

Merged
merged 1 commit into from
Nov 7, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion latest_changes/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,11 @@
from pydantic import BaseModel, SecretStr
from pydantic_settings import BaseSettings

COMMIT_MESSAGE = """
📝 Update release notes

[skip ci]
""".strip()

class Section(BaseModel):
label: str
Expand Down Expand Up @@ -248,7 +253,7 @@ def main() -> None:
subprocess.run(
["git", "add", str(settings.input_latest_changes_file)], check=True
)
subprocess.run(["git", "commit", "-m", "📝 Update release notes"], check=True)
subprocess.run(["git", "commit", "-m", COMMIT_MESSAGE], check=True)
logging.info(f"Pushing changes: {settings.input_latest_changes_file}")

result = subprocess.run(["git", "push"])
Expand Down