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 1db6575 commit ff3ba62
Showing 1 changed file with 11 additions and 7 deletions.
18 changes: 11 additions & 7 deletions .github/workflows/update-to-latest-easystats.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ jobs:
any::usethis
- name: Update DESCRIPTION file
id: update_description
run: |
usethis::use_latest_dependencies()
shell: Rscript {0}
Expand All @@ -35,17 +36,20 @@ jobs:
id: check_description
run: |
git status
git diff --name-only
git add --all
continue-on-error: true # Continue even if there are no changes

- name: Create pull request
if: steps.check_description.outputs.stdout != ''
if: ${{ steps.update_description.outputs.changed }}
uses: peter-evans/create-pull-request@v5
with:
token: ${{ secrets.GITHUB_TOKEN }}
branch: update-description
title: "Update DESCRIPTION to use latest 'easystats' dependencies"
body: "Automatically updated the `DESCRIPTION` file."
labels: "auto-update"
base: main
base: ${{ github.head_ref }}
branch: desc-${{ github.ref_name }}-${{ github.job }}
branch-suffix: timestamp
delete-branch: true
title: "Update `DESCRIPTION` to use latest 'easystats' dependencies"
body: "Automatically updated the `DESCRIPTION` file using `usethis::use_latest_dependencies()`."
labels: "auto-update"
add-paths: |
DESCRIPTION

0 comments on commit ff3ba62

Please sign in to comment.