Skip to content

Commit 9109c3b

Browse files
authored
update gitlint, docs and rules_python (#28)
1 parent bb0daa4 commit 9109c3b

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

.github/actions/gitlint/action.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ runs:
3131
git config --global --add safe.directory /github/workspace && \
3232
git fetch origin +refs/heads/main:refs/remotes/origin/main && \
3333
git fetch origin +refs/pull/${{ inputs.pr-number }}/head && \
34-
if ! gitlint --commits origin/main..HEAD; then \
34+
if ! gitlint --commits ${{ inputs.base-branch }}..HEAD; then \
3535
echo -e "\nWARNING: Your commit message does not follow the required format." && \
3636
echo "Formatting rules: https://eclipse-score.github.io/score/process/guidance/git/index.html" && \
3737
echo -e "To fix your commit message, run:\n" && \

.github/workflows/docs.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,5 +38,6 @@ jobs:
3838
id-token: write
3939

4040
with:
41-
bazel-target: "//docs:github_pages"
41+
# the bazel-target depends on your repo specific docs_targets configuration (e.g. "suffix")
42+
bazel-target: "//docs:incremental -- --github_user=${{ github.repository_owner }} --github_repo=${{ github.event.repository.name }}"
4243
retention-days: 3

.github/workflows/gitlint.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,4 +29,3 @@ jobs:
2929
uses: ./.github/actions/gitlint
3030
with:
3131
pr-number: ${{ github.event.number }}
32-
base-branch: ${{ github.event.pull_request.base.ref }}

MODULE.bazel

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ module(
1515
version = "1.0",
1616
)
1717

18-
bazel_dep(name = "rules_python", version = "1.0.0")
18+
bazel_dep(name = "rules_python", version = "1.4.1")
1919

2020
PYTHON_VERSION = "3.12"
2121

@@ -62,4 +62,4 @@ bazel_dep(name = "aspect_rules_lint", version = "1.0.3")
6262
bazel_dep(name = "buildifier_prebuilt", version = "7.3.1")
6363

6464
#docs-as-code
65-
bazel_dep(name = "score_docs_as_code", version = "0.2.4")
65+
bazel_dep(name = "score_docs_as_code", version = "0.3.3")

0 commit comments

Comments
 (0)