diff --git a/.github/workflows/build_docs.yml b/.github/workflows/build_docs.yml index b107d7e..cb0ce21 100644 --- a/.github/workflows/build_docs.yml +++ b/.github/workflows/build_docs.yml @@ -49,19 +49,17 @@ jobs: cd docs ls if [[ -n $(git status --porcelain) ]]; then - echo entrou echo "changes=true" >> "$GITHUB_OUTPUT" fi - name: Commit and push changes - if: env.GITHUB_OUTPUT == 'true' + if: steps.check_changes.outputs.GITHUB_ENV == 'true' + needs: check_changes run: | git config --global user.email "${GITHUB_ACTOR_ID}+${GITHUB_ACTOR}@users.noreply.github.com" git config --global user.name "${GITHUB_ACTOR}" git add . git commit -m "Update docs" - git push origin master - env: - GITHUB_OUTPUT: ${{ steps.check_changes.outputs.GITHUB_OUTPUT }} + git push origin main diff --git a/rdocs/R/main.R b/rdocs/R/main.R index e85529c..a38da3e 100644 --- a/rdocs/R/main.R +++ b/rdocs/R/main.R @@ -115,7 +115,7 @@ generate_docs <- function(files, folder_name = "docs", gh_url = "", run_examples # Create qmd files and build and render quarto project. system2(RDOCS_PATH, args = c("--files", files, "--folder-name", folder_name, "--gh-url", gh_url, run_examples)) - cat("Documentation built.") + cat("Documentation has been built.") invisible(NULL) }