-
Notifications
You must be signed in to change notification settings - Fork 37
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
revised branch creation in tag based website docs
- Loading branch information
Showing
1 changed file
with
8 additions
and
4 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 |
---|---|---|
|
@@ -25,7 +25,11 @@ jobs: | |
- name: checkout repository | ||
uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 1 | ||
fetch-depth: 0 # checking out latest tag in next step | ||
- name: Get Latest Version Tag | ||
uses: WyriHaximus/[email protected] | ||
with: | ||
prefix: 'v' | ||
- name: set up R | ||
uses: r-lib/actions/setup-r@v2 | ||
with: | ||
|
@@ -42,7 +46,7 @@ jobs: | |
run: | | ||
git config --local user.name "$GITHUB_ACTOR" | ||
git config --local user.email "[email protected]" | ||
git checkout -b website_update_${{steps.previoustag.outputs.tag}} | ||
git add docs/\* | ||
git commit -m "Update website documentation" || echo "No changes to commit" | ||
git pull --ff-only | ||
git push origin | ||
git commit -m "Update website documentation to ${{steps.previoustag.outputs.tag}}" || echo "No changes to commit" | ||
git push origin website_update_${{steps.previoustag.outputs.tag}} |