mirror of
https://github.com/vacp2p/rfc-index.git
synced 2026-01-10 16:18:22 -05:00
Compare commits
17 Commits
mix
...
workflow-f
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
9274b4bca9 | ||
|
|
655cd48c8e | ||
|
|
058ab7058f | ||
|
|
f5c51dd4ab | ||
|
|
4338457cd9 | ||
|
|
12439433d9 | ||
|
|
8243ae32f2 | ||
|
|
f803497df1 | ||
|
|
8f223f2a97 | ||
|
|
472a30d82c | ||
|
|
8b2b2d0db5 | ||
|
|
fa60bd7da9 | ||
|
|
4db5dce536 | ||
|
|
9425e85909 | ||
|
|
d8124cf181 | ||
|
|
452cc52741 | ||
|
|
c1b5f9602e |
10
.github/workflows/markdown-lint.yml
vendored
10
.github/workflows/markdown-lint.yml
vendored
@@ -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}}
|
||||
|
||||
11
.github/workflows/website-sync.yml
vendored
11
.github/workflows/website-sync.yml
vendored
@@ -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 }}
|
||||
|
||||
Reference in New Issue
Block a user