From 9b22e5b1f225e6f152b99da337c12b5f18794825 Mon Sep 17 00:00:00 2001 From: Dave Slager Date: Sun, 25 Feb 2024 15:39:17 -0800 Subject: [PATCH] rm styler on pr gh action --- .github/workflows/pr-commands.yaml | 55 ------------------------------ 1 file changed, 55 deletions(-) delete mode 100644 .github/workflows/pr-commands.yaml diff --git a/.github/workflows/pr-commands.yaml b/.github/workflows/pr-commands.yaml deleted file mode 100644 index e5edf9f7..00000000 --- a/.github/workflows/pr-commands.yaml +++ /dev/null @@ -1,55 +0,0 @@ -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 }} - 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 }} - 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 }}