From 2334436bac77edd4a9ef689297ecdd2b2227ab40 Mon Sep 17 00:00:00 2001 From: Mo Langning <133737702+molangning@users.noreply.github.com> Date: Sun, 26 Nov 2023 21:54:18 +0800 Subject: [PATCH] skip our own commits as it may trigger loop --- .bin/get-and-patch-readme-repository-details.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.bin/get-and-patch-readme-repository-details.py b/.bin/get-and-patch-readme-repository-details.py index fedd878f..f7ce4fbf 100755 --- a/.bin/get-and-patch-readme-repository-details.py +++ b/.bin/get-and-patch-readme-repository-details.py @@ -60,6 +60,9 @@ for commit in commits: if commit["commit"]["message"].startswith("Merge pull request") and commit["commit"]["committer"]=="Github": continue + if commit["commit"]["message"]=="[Github Action] Automated readme update." and commit["commit"]["committer"]=="GitHub Action": + continue + commit_author=commit['commit']['author']['name'] commit_hash=commit['sha'] commit_date=commit['commit']['author']['date'].split('T')[0]