Skip to content

Commit 84655f2

Browse files
committed
modified: .github/actions/recent-posts/main.py
- Removed git logic -- plan to move it to the workflow itself.
1 parent 847058c commit 84655f2

File tree

1 file changed

+0
-9
lines changed
  • .github/actions/recent-posts

1 file changed

+0
-9
lines changed

.github/actions/recent-posts/main.py

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -53,19 +53,10 @@ def main(
5353
xml: bytes = resp.content
5454
model = Feed.from_xml(source=xml)
5555
json_string = model.model_dump_json()
56-
with open(environ["GITHUB_OUTPUT"], mode="a") as f:
57-
f.write(f"result={json_string}")
5856

5957
with readme.open(mode="a") as f:
6058
f.write(f"result={json_string}\n")
6159

62-
subprocess.run(args=["git", "config", "--global", "user.email", "[email protected]"])
63-
subprocess.run(args=["git", "config", "--global", "user.name", "it176131-github-io-bot"])
64-
subprocess.run(args=["git", "add", readme.as_posix()])
65-
subprocess.run(args=["git", "commit", "-m", "Synced and updated with most recent it176131.github.io blog post"])
66-
subprocess.run(args=["git", "push"])
67-
print("Success?")
68-
6960

7061
if __name__ == "__main__":
7162
app()

0 commit comments

Comments
 (0)