-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
## Description These changes are to fix the CI build that is failing to not find the branch to be able to push from. Plus fixed the commit messages to be conventional commit
- Loading branch information
Showing
2 changed files
with
9 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -18,6 +18,7 @@ jobs: | |
uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 | ||
ref: ${{ github.head_ref }} | ||
|
||
- name: Setup R | ||
uses: r-lib/actions/setup-r@v2 | ||
|
@@ -39,6 +40,5 @@ jobs: | |
git config --local user.name "$GITHUB_ACTOR" | ||
git config --local user.email "[email protected]" | ||
git add man/\* NAMESPACE DESCRIPTION | ||
git commit -m "Update documentation" || echo "No changes to commit" | ||
git pull --ff-only | ||
git push origin | ||
git commit -m "chore: :bento: Re-generated roxygen2 documentation" || echo "No changes to commit" | ||
git push |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -18,17 +18,16 @@ jobs: | |
uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 | ||
ref: ${{ github.head_ref }} | ||
|
||
- name: Setup R | ||
uses: r-lib/actions/setup-r@v2 | ||
with: | ||
use-public-rspm: true | ||
|
||
- name: Install dependencies | ||
uses: r-lib/actions/setup-r-dependencies@v2 | ||
with: | ||
extra-packages: any::styler, any::roxygen2 | ||
needs: styler | ||
- name: Install styler and roxygen2 | ||
run: install.packages(c("styler", "roxygen2")) | ||
shell: Rscript {0} | ||
|
||
- name: Enable styler cache | ||
run: styler::cache_activate() | ||
|
@@ -67,9 +66,8 @@ jobs: | |
then | ||
git config --local user.name "$GITHUB_ACTOR" | ||
git config --local user.email "[email protected]" | ||
git commit ${FILES_TO_COMMIT[*]} -m "Style code (GHA)" | ||
git pull --ff-only | ||
git push origin | ||
git commit ${FILES_TO_COMMIT[*]} -m "style: :art: Auto-format code with styler" | ||
git push | ||
else | ||
echo "No changes to commit." | ||
fi |