Skip to content

Commit 4d2f1ef

Browse files
Added new GitHub Action
1 parent 769cc20 commit 4d2f1ef

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed

.github/workflows/swift.yml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
# This workflow will build a Swift project
2+
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-swift
3+
4+
name: README.md Generator
5+
6+
on:
7+
push:
8+
branches: [ "main" ]
9+
10+
jobs:
11+
build:
12+
13+
runs-on: macos-latest
14+
15+
steps:
16+
- name: Checkout repository
17+
uses: actions/checkout@v4
18+
- name: Generate README.md and push changes
19+
run: |
20+
swift Script/on_merge.swift > README.md
21+
git config user.name github-actions
22+
git config user.email github-actions@github.com
23+
git add .
24+
git commit -m "Generated README.md based on new entry"
25+
git push

0 commit comments

Comments
 (0)