-
Notifications
You must be signed in to change notification settings - Fork 0
36 lines (33 loc) · 1.08 KB
/
portfolio.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
name: Push to Portfolio Content Directory
on:
push:
branches: "main"
workflow_dispatch:
env:
GH_TOKEN: ${{ secrets.TOKEN_TO_ACCESS_OUTPUT_REPO }}
jobs:
create-readme-md:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: "Read file contents"
id: read_file
uses: lucaengelhard/[email protected]
with:
path: "README.md"
- name: Checkout Portfolio Repo
uses: actions/checkout@v4
with:
repository: lucaengelhard/portfolio
ref: main
- name: Create target file
run: echo "${{ steps.read_file.outputs.markdown }}" > content/${{ github.event.repository.name }}.md
- name: show that file exists
run: ls
- run: git add .
- run: git config --global user.email "[email protected]"
- run: git config --global user.name "Luca Engelhard"
- run: git commit -m "Adding or Updating ${{ github.event.repository.name }} to content directory"
- run: git push
- run: gh pr create --fill