feat: update landing page layout and content #139
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
# Workflow derived from https://github.com/r-lib/actions/tree/v2/examples | |
# Need help debugging build failures? Start at https://github.com/r-lib/actions#where-to-find-help | |
on: | |
issue_comment: | |
types: [created] | |
name: Commands | |
jobs: | |
reformat_markdown: | |
if: ${{ github.event.issue.pull_request && (github.event.comment.author_association == 'MEMBER' || github.event.comment.author_association == 'OWNER') && startsWith(github.event.comment.body, '/reformat_markdown') }} | |
name: reformat_markdown | |
runs-on: ubuntu-latest | |
env: | |
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }} | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: r-lib/actions/pr-fetch@v2 | |
with: | |
repo-token: ${{ secrets.GITHUB_TOKEN }} | |
- uses: r-lib/actions/setup-pandoc@v2 | |
with: | |
pandoc-version: '2.17.1' # The pandoc version to download (if necessary) and use. | |
- name: Reformat Markdown files | |
run: bash tools/pr/reformat-markdown.sh | |
- name: Commit | |
run: | | |
git config --local user.name "$GITHUB_ACTOR" | |
git config --local user.email "[email protected]" | |
git add . | |
git commit -m 'Reformatted changed Markdown files to canonical format [skip ci]' | |
- uses: r-lib/actions/pr-push@v2 | |
with: | |
repo-token: ${{ secrets.GITHUB_TOKEN }} |