From 491915f47ee33f867f66915f009ebb7f51477f1b Mon Sep 17 00:00:00 2001 From: Indrajeet Patil Date: Wed, 27 Sep 2023 14:52:33 +0200 Subject: [PATCH] Update update-to-latest-easystats.yml --- .../workflows/update-to-latest-easystats.yml | 20 +++++++------------ 1 file changed, 7 insertions(+), 13 deletions(-) diff --git a/.github/workflows/update-to-latest-easystats.yml b/.github/workflows/update-to-latest-easystats.yml index 52b510f64..dcc9fdc80 100644 --- a/.github/workflows/update-to-latest-easystats.yml +++ b/.github/workflows/update-to-latest-easystats.yml @@ -1,4 +1,4 @@ -name: Create PR for DESCRIPTION change +name: Create PR for DESCRIPTION change to use latest easystats dependencies on: push: @@ -7,8 +7,8 @@ on: branches: [main, master] # Run on a schedule (once a month) -#schedule: -# - cron: "0 0 1 * *" +# schedule: +# - cron: "0 0 1 * *" jobs: create_pr: @@ -20,17 +20,11 @@ jobs: - name: Set up R uses: r-lib/actions/setup-r@v2 - - name: Install dependencies - run: | - Rscript -e "install.packages('usethis')" - shell: bash - working-directory: ./ # Change this to the appropriate directory if necessary - - name: Update DESCRIPTION file run: | - Rscript -e "usethis::use_latest_dependencies()" - shell: bash - working-directory: ./ # Change this to the appropriate directory if necessary + install.packages('usethis') + usethis::use_latest_dependencies() + shell: Rscript {0} - name: Check for changes in DESCRIPTION id: check_description @@ -47,5 +41,5 @@ jobs: title: "Update DESCRIPTION to use latest 'easystats' dependencies" body: "Automatically updated the `DESCRIPTION` file." labels: "auto-update" - base: main # Change this to the target branch for your pull request + base: main branch-suffix: timestamp