files.upload method is deprecated. Upcoming breakage of slackr::file_upload()
#255
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: macOS-latest | |
env: | |
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }} | |
ENVIRONMENT: ${{ secrets.ENVIRONMENT }} | |
SLACK_TOKEN: ${{ secrets.SLACK_TOKEN }} | |
SLACK_CHANNEL: ${{ secrets.SLACK_CHANNEL }} | |
SLACK_ICON_EMOJI: ${{ secrets.SLACK_ICON_EMOJI }} | |
SLACK_INCOMING_WEBHOOK_URL: ${{ secrets.SLACK_INCOMING_URL_PREFIX }} | |
SLACK_USERNAME: ${{ secrets.SLACK_USERNAME }} | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: r-lib/actions/pr-fetch@v1 | |
with: | |
repo-token: ${{ secrets.GITHUB_TOKEN }} | |
- uses: r-lib/actions/setup-r@v1 | |
- name: Install dependencies | |
run: Rscript -e 'install.packages(c("remotes", "roxygen2"))' -e 'remotes::install_deps(dependencies = TRUE)' | |
- name: Document | |
run: Rscript -e 'roxygen2::roxygenise()' | |
- name: commit | |
run: | | |
git config --local user.email "actions@github.com" | |
git config --local user.name "GitHub Actions" | |
git add man/\* NAMESPACE | |
git commit -m 'Document' | |
- uses: r-lib/actions/pr-push@v1 | |
with: | |
repo-token: ${{ secrets.GITHUB_TOKEN }} | |
style: | |
if: startsWith(github.event.comment.body, '/style') | |
name: style | |
runs-on: macOS-latest | |
env: | |
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }} | |
ENVIRONMENT: ${{ secrets.ENVIRONMENT }} | |
SLACK_TOKEN: ${{ secrets.SLACK_TOKEN }} | |
SLACK_CHANNEL: ${{ secrets.SLACK_CHANNEL }} | |
SLACK_ICON_EMOJI: ${{ secrets.SLACK_ICON_EMOJI }} | |
SLACK_INCOMING_WEBHOOK_URL: ${{ secrets.SLACK_INCOMING_URL_PREFIX }} | |
SLACK_USERNAME: ${{ secrets.SLACK_USERNAME }} | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: r-lib/actions/pr-fetch@v1 | |
with: | |
repo-token: ${{ secrets.GITHUB_TOKEN }} | |
- uses: r-lib/actions/setup-r@v1 | |
- name: Install dependencies | |
run: Rscript -e 'install.packages("styler")' | |
- name: Style | |
run: Rscript -e 'styler::style_pkg()' | |
- name: commit | |
run: | | |
git config --local user.email "actions@github.com" | |
git config --local user.name "GitHub Actions" | |
git add \*.R | |
git commit -m 'Style' | |
- uses: r-lib/actions/pr-push@v1 | |
with: | |
repo-token: ${{ secrets.GITHUB_TOKEN }} |