Skip to content

Commit 1e88ffd

Browse files
authored
Create code-embedder.yml
1 parent 46f9789 commit 1e88ffd

File tree

1 file changed

+28
-0
lines changed

1 file changed

+28
-0
lines changed
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
# .github/workflows/embed.yml
2+
3+
name: Embed docker-compose.yml in README
4+
5+
on:
6+
push:
7+
paths:
8+
- '**/README.md'
9+
- '**/*.yml'
10+
workflow_dispatch:
11+
12+
jobs:
13+
embed:
14+
runs-on: ubuntu-latest
15+
steps:
16+
- name: Checkout repository
17+
uses: actions/checkout@v3
18+
19+
- name: Code Embedder
20+
uses: kvankova/code-embedder@v1.1.2
21+
22+
- name: Commit changes
23+
run: |
24+
git config user.name "github-actions"
25+
git config user.email "github-actions@users.noreply.github.com"
26+
git add .
27+
git commit -m "Update embedded code"
28+
git push || echo "No changes to commit"fi

0 commit comments

Comments
 (0)