in-implementation updates to the default helper manager RFC, 756 #1044
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: CI | |
on: | |
push: | |
branches: [master] | |
pull_request: {} | |
jobs: | |
lint-frontmatter: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Checkout tools repo | |
uses: actions/checkout@v2 | |
with: | |
repository: emberjs/rfcs-tooling | |
path: rfcs-tooling | |
- uses: actions/setup-node@v2.1.2 | |
- run: yarn install | |
working-directory: rfcs-tooling | |
- name: Lint the frontmatter of all RFCs for informational purposes | |
run: node lint-rfc-frontmatter.js ../text/*.md || true # Don't want to fail on old RFCs just yet | |
working-directory: rfcs-tooling | |
- name: Get Changed Files | |
uses: lots0logs/gh-action-get-changed-files@2.1.4 | |
with: | |
token: ${{ secrets.GITHUB_TOKEN }} | |
- name: Filter Added Files to added RFCs | |
id: files | |
run: | | |
added_files=`jq -r '[.[] | select(startswith("text/"))] | join(" ")' ${HOME}/files_added.json` | |
echo "::set-output name=added::$added_files" | |
- name: Lint added RFCs frontmatter | |
if: ${{ steps.files.outputs.added }} | |
run: | | |
node rfcs-tooling/lint-rfc-frontmatter.js ${{ steps.files.outputs.added }} | |
validate-mdbook: | |
runs-on: ubuntu-18.04 | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Setup mdBook | |
uses: peaceiris/actions-mdbook@v1 | |
with: | |
mdbook-version: "0.4.15" | |
- name: "[mdBook] Prepare files" | |
run: | | |
if [ ! -d src ]; then | |
mkdir src | |
fi | |
echo "[Introduction](introduction.md)\n" > src/SUMMARY.md | |
for f in $(ls text/* | sort) | |
do | |
echo "- [$(basename $f ".md")]($(basename $f))" >> src/SUMMARY.md | |
cp $f src | |
done | |
cp README.md src/introduction.md | |
- name: "[mdBook] Build mdBook" | |
run: mdbook build |