Error: could not find function "%||%" #388
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
on: | |
issue_comment: | |
types: [created] | |
name: Commands | |
jobs: | |
document: | |
if: startsWith(github.event.comment.body, '/document') | |
name: document | |
runs-on: ubuntu-18.04 | |
env: | |
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }} | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: r-lib/actions/pr-fetch@v2 | |
with: | |
repo-token: ${{ secrets.GITHUB_TOKEN }} | |
- uses: r-lib/actions/setup-r@v2 | |
- name: Install dependencies | |
run: | | |
options(repos = c(CRAN = "https://demo.rstudiopm.com/all/__linux__/bionic/latest")) | |
install.packages(c("remotes", "roxygen2")) | |
remotes::install_deps(dependencies = TRUE) | |
shell: Rscript {0} | |
- name: Document | |
run: Rscript -e 'roxygen2::roxygenise()' | |
- name: commit | |
run: | | |
git config --local user.name "$GITHUB_ACTOR" | |
git config --local user.email "[email protected]" | |
git add man/\* NAMESPACE | |
git commit -m 'Document' | |
- uses: r-lib/actions/pr-push@v2 | |
with: | |
repo-token: ${{ secrets.GITHUB_TOKEN }} | |
i18n: | |
if: startsWith(github.event.comment.body, '/i18nize') | |
name: i18nize | |
runs-on: ubuntu-18.04 | |
env: | |
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }} | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: r-lib/actions/pr-fetch@v2 | |
with: | |
repo-token: ${{ secrets.GITHUB_TOKEN }} | |
- uses: r-lib/actions/setup-r@v2 | |
- name: Install dependencies | |
run: | | |
options(repos = c(CRAN = "https://demo.rstudiopm.com/all/__linux__/bionic/latest")) | |
install.packages(c("cli", "here", "purrr", "stringi", "yaml")) | |
shell: Rscript {0} | |
- name: Internationalize | |
run: Rscript data-raw/i18n_translations.R | |
- name: commit | |
run: | | |
git config --local user.name "$GITHUB_ACTOR" | |
git config --local user.email "[email protected]" | |
git commit inst/internals/i18n* -m 'Re-build internal internationalization data' || echo "No changes to commit" | |
git push origin || echo "No changes to commit" | |
- uses: r-lib/actions/pr-push@v2 | |
with: | |
repo-token: ${{ secrets.GITHUB_TOKEN }} |