Compare commits

...

17 Commits

Author SHA1 Message Date
Jimmy Debe
9274b4bca9 Update markdown-lint.yml 2024-04-08 04:20:13 -04:00
Jimmy Debe
655cd48c8e Update markdown-lint.yml 2024-04-08 04:19:13 -04:00
Jimmy Debe
058ab7058f Update markdown-lint.yml 2024-04-08 04:17:51 -04:00
Jimmy Debe
f5c51dd4ab Update markdown-lint.yml 2024-04-08 04:16:15 -04:00
Jimmy Debe
4338457cd9 Update markdown-lint.yml 2024-03-29 02:16:23 -04:00
Jimmy Debe
12439433d9 Update markdown-lint.yml 2024-03-29 02:09:34 -04:00
Jimmy Debe
8243ae32f2 Update markdown-lint.yml 2024-03-29 02:06:20 -04:00
Jimmy Debe
f803497df1 Update markdown-lint.yml 2024-03-29 02:03:29 -04:00
Jimmy Debe
8f223f2a97 Update markdown-lint.yml 2024-03-29 02:01:58 -04:00
Jimmy Debe
472a30d82c Update markdown-lint.yml 2024-03-29 01:58:37 -04:00
Jimmy Debe
8b2b2d0db5 Update markdown-lint.yml 2024-03-29 01:57:46 -04:00
Jimmy Debe
fa60bd7da9 Update markdown-lint.yml 2024-03-29 01:53:19 -04:00
Jimmy Debe
4db5dce536 Update markdown-lint.yml 2024-03-29 01:47:19 -04:00
Jimmy Debe
9425e85909 Update markdown-lint.yml 2024-03-29 01:45:48 -04:00
Jimmy Debe
d8124cf181 Update markdown-lint.yml 2024-03-29 01:39:56 -04:00
Jimmy Debe
452cc52741 Update markdown-lint.yml 2024-03-28 21:18:25 -04:00
Jimmy Debe
c1b5f9602e Update website-sync.yml 2024-03-28 21:15:23 -04:00
2 changed files with 12 additions and 9 deletions

View File

@@ -17,16 +17,10 @@ jobs:
uses: actions/checkout@v2
- name: Get changed files
continue-on-error: true
run: |
echo "CHANGED_FILES<<EOF" >> $GITHUB_ENV
gh pr diff ${{ github.event.number }} --name-only | sed -e 's|$|,|' | xargs -i echo "{}" >> $GITHUB_ENV
echo "EOF" >> $GITHUB_ENV
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
echo "CHANGED_FILES=$(gh pr diff ${{ github.event.number }} --name-only | grep '\.md$' | xargs -I {} echo "{}")" >> $GITHUB_ENV
- name: Markdown Linter
uses: DavidAnson/markdownlint-cli2-action@v15
with:
globs: ${{ env.CHANGED_FILES }}
globs: ${{ env.CHANGED_FILES}}

View File

@@ -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 }}