From 659aa101f3f0e19854500beb22257e7d4508351d Mon Sep 17 00:00:00 2001 From: Daniel Sjoberg Date: Sat, 28 Oct 2023 08:29:48 -0700 Subject: [PATCH] remove workflows that we don't need --- .github/workflows/pr-commands.yaml | 75 ---------------------------- .github/workflows/render-readme.yaml | 36 ------------- 2 files changed, 111 deletions(-) delete mode 100644 .github/workflows/pr-commands.yaml delete mode 100644 .github/workflows/render-readme.yaml diff --git a/.github/workflows/pr-commands.yaml b/.github/workflows/pr-commands.yaml deleted file mode 100644 index 9770271..0000000 --- a/.github/workflows/pr-commands.yaml +++ /dev/null @@ -1,75 +0,0 @@ -# Workflow derived from https://github.com/r-lib/actions/tree/master/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: - document: - if: startsWith(github.event.comment.body, '/document') - name: document - runs-on: ubuntu-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@v2 - with: - use-public-rspm: true - - - uses: r-lib/actions/setup-r-dependencies@v1 - with: - extra-packages: roxygen2 - - - name: Document - run: Rscript -e 'roxygen2::roxygenise()' - - - name: commit - run: | - git config --local user.name "$GITHUB_ACTOR" - git config --local user.email "$GITHUB_ACTOR@users.noreply.github.com" - 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: ubuntu-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.name "$GITHUB_ACTOR" - git config --local user.email "$GITHUB_ACTOR@users.noreply.github.com" - git add \*.R - git commit -m 'Style' - - - uses: r-lib/actions/pr-push@v1 - with: - repo-token: ${{ secrets.GITHUB_TOKEN }} diff --git a/.github/workflows/render-readme.yaml b/.github/workflows/render-readme.yaml deleted file mode 100644 index a211e3f..0000000 --- a/.github/workflows/render-readme.yaml +++ /dev/null @@ -1,36 +0,0 @@ -# Workflow derived from https://github.com/r-lib/actions/tree/master/examples -# Need help debugging build failures? Start at https://github.com/r-lib/actions#where-to-find-help -on: - push: - branches: [main, master] - tags: ['*'] - -name: Render README - -jobs: - README: - runs-on: ubuntu-latest - env: - GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }} - steps: - - uses: actions/checkout@v2 - - - uses: r-lib/actions/setup-pandoc@v1 - - - uses: r-lib/actions/setup-r@v2 - with: - use-public-rspm: true - - - uses: r-lib/actions/setup-r-dependencies@v1 - with: - extra-packages: pkgdown, webshot2, usethis - needs: website - - - name: Render README - run: Rscript -e 'rmarkdown::render("README.Rmd")' - - name: Commit results - run: | - git config --local user.name "$GITHUB_ACTOR" - git config --local user.email "$GITHUB_ACTOR@users.noreply.github.com" - git commit README.md -m 'Re-build README.Rmd' || echo "No changes to commit" - git push origin || echo "No changes to commit"