Skip to content

Commit

Permalink
Update update-to-latest-easystats.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
IndrajeetPatil committed Sep 27, 2023
1 parent 750103c commit 491915f
Showing 1 changed file with 7 additions and 13 deletions.
20 changes: 7 additions & 13 deletions .github/workflows/update-to-latest-easystats.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Create PR for DESCRIPTION change
name: Create PR for DESCRIPTION change to use latest easystats dependencies

on:
push:
Expand All @@ -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:
Expand All @@ -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
Expand All @@ -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

0 comments on commit 491915f

Please sign in to comment.