Skip to content

Commit

Permalink
revised branch creation in tag based website docs
Browse files Browse the repository at this point in the history
  • Loading branch information
bburns632 committed May 6, 2024
1 parent 0b5679a commit a24c36e
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions .github/workflows/website.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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}}

0 comments on commit a24c36e

Please sign in to comment.