Skip to content

Commit

Permalink
Update website-sync.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
jimstir authored Mar 29, 2024
1 parent 43f4989 commit c1b5f96
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion .github/workflows/website-sync.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,19 @@ jobs:
for file in ${{ steps.changed_files.outputs.files }}; do
cp --parents "$file" rfc-website/
done
- name: Add frontmatter
run: |
for file in ${{ steps.changed_files.outputs.files }}; do
frontmatter=$(awk '/^---$/ {c++; next} c==2 {print; exit}' "$file")
sed -i "/^---$/ {n; a$frontmatter\n\n}" "$file"
done
- name: Push changes to Website Repo
run: |
cd rfc-website
git add .
git commit -m "Sync website"
git push origin main
git push origin master
env:
GH_TOKEN: ${{ secrets.GH_TOKEN }}

0 comments on commit c1b5f96

Please sign in to comment.