Add 7 new logos #195
This file contains hidden or 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
| on: | |
| pull_request: | |
| branches: '*' | |
| issue_comment: | |
| types: [created] | |
| name: Render README | |
| jobs: | |
| check-not-fork: | |
| runs-on: ubuntu-latest | |
| # Only check on PR | |
| if: github.event_name == 'pull_request' || github.event.issue.pull_request | |
| steps: | |
| - uses: actions/github-script@v5 | |
| if: github.event.pull_request.head.repo.fork == true | |
| with: | |
| script: | | |
| core.setFailed('This PR is from a fork. README.Rmd should be rendered manually using `/render` command in a comment.') | |
| render: | |
| needs: check-not-fork | |
| name: Render README | |
| runs-on: ubuntu-latest | |
| # Don't run on fork - in that case a comment should trigger | |
| if: contains(github.event.pull_request.head.repo.fork, 'false') || (github.event.issue.pull_request && startsWith(github.event.comment.body, '/render')) | |
| steps: | |
| - uses: actions/checkout@v3 | |
| - uses: r-lib/actions/pr-fetch@v2 | |
| with: | |
| repo-token: ${{ secrets.GITHUB_TOKEN }} | |
| - uses: r-lib/actions/setup-r@v2 | |
| with: | |
| use-public-rspm: true | |
| - uses: r-lib/actions/setup-pandoc@v2 | |
| - uses: r-lib/actions/setup-r-dependencies@v2 | |
| - name: Render README | |
| run: Rscript -e 'rmarkdown::render("README.Rmd")' | |
| - name: Configure Git | |
| run: | | |
| git config --local user.name "$GITHUB_ACTOR" | |
| git config --local user.email "$GITHUB_ACTOR@users.noreply.github.com" | |
| - name: Commit results | |
| run: | | |
| git add README.md thumbs && git commit -m 'Re-build README.Rmd' || echo "No changes to commit" | |
| - uses: r-lib/actions/pr-push@v2 | |
| with: | |
| repo-token: ${{ secrets.GITHUB_TOKEN }} |