diff --git a/.github/actions/gitlint/action.yml b/.github/actions/gitlint/action.yml index e697e42..5f0417b 100644 --- a/.github/actions/gitlint/action.yml +++ b/.github/actions/gitlint/action.yml @@ -31,7 +31,7 @@ runs: git config --global --add safe.directory /github/workspace && \ git fetch origin +refs/heads/main:refs/remotes/origin/main && \ git fetch origin +refs/pull/${{ inputs.pr-number }}/head && \ - if ! gitlint --commits origin/main..HEAD; then \ + if ! gitlint --commits ${{ inputs.base-branch }}..HEAD; then \ echo -e "\nWARNING: Your commit message does not follow the required format." && \ echo "Formatting rules: https://eclipse-score.github.io/score/process/guidance/git/index.html" && \ echo -e "To fix your commit message, run:\n" && \ diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml index b581023..251b6c6 100644 --- a/.github/workflows/docs.yml +++ b/.github/workflows/docs.yml @@ -38,5 +38,6 @@ jobs: id-token: write with: - bazel-target: "//docs:github_pages" + # the bazel-target depends on your repo specific docs_targets configuration (e.g. "suffix") + bazel-target: "//docs:incremental -- --github_user=${{ github.repository_owner }} --github_repo=${{ github.event.repository.name }}" retention-days: 3 diff --git a/.github/workflows/gitlint.yml b/.github/workflows/gitlint.yml index 01087a9..90487ed 100644 --- a/.github/workflows/gitlint.yml +++ b/.github/workflows/gitlint.yml @@ -29,4 +29,3 @@ jobs: uses: ./.github/actions/gitlint with: pr-number: ${{ github.event.number }} - base-branch: ${{ github.event.pull_request.base.ref }} diff --git a/MODULE.bazel b/MODULE.bazel index 3929dd1..2af1b49 100644 --- a/MODULE.bazel +++ b/MODULE.bazel @@ -15,7 +15,7 @@ module( version = "1.0", ) -bazel_dep(name = "rules_python", version = "1.0.0") +bazel_dep(name = "rules_python", version = "1.4.1") PYTHON_VERSION = "3.12" @@ -62,4 +62,4 @@ bazel_dep(name = "aspect_rules_lint", version = "1.0.3") bazel_dep(name = "buildifier_prebuilt", version = "7.3.1") #docs-as-code -bazel_dep(name = "score_docs_as_code", version = "0.2.4") +bazel_dep(name = "score_docs_as_code", version = "0.3.3")