File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ FROM jorisroovers/gitlint:0.19.1
Original file line number Diff line number Diff line change @@ -23,15 +23,14 @@ inputs:
2323 required : false
2424runs :
2525 using : " docker"
26- image : " jorisroovers/gitlint:0.19.1"
27- entrypoint : /bin/sh
26+ image : " Dockerfile"
2827 args :
2928 - -c
3029 - |
3130 git config --global --add safe.directory /github/workspace && \
3231 git fetch origin +refs/heads/${{ inputs.base-branch }}:refs/remotes/origin/${{ inputs.base-branch }} && \
3332 git fetch origin +refs/pull/${{ inputs.pr-number }}/head && \
34- if ! gitlint --commits origin/${{ inputs.base-branch }}..HEAD; then \
33+ if ! gitlint --commits origin/${{ inputs.base-branch }}..HEAD --target=/github/workspace ; then \
3534 echo -e "\nWARNING: Your commit message does not follow the required format." && \
3635 echo "Formatting rules: https://eclipse-score.github.io/score/main/contribute/general/git.html" && \
3736 echo -e "To fix your commit message, run:\n" && \
Original file line number Diff line number Diff line change 6767 done
6868
6969 # Remove versions.json entries without corresponding folders
70- jq '[.[] | select((.version | IN($folders[])))]' --argjson folders "$(ls -1 | jq -R -s -c 'split("\n")[:-1]')" versions_tmp.json > versions_tmp_clean.json
70+ jq '[.[] | select((.version | IN($folders[])))]' \
71+ --argjson folders "$(find . -maxdepth 1 -mindepth 1 -type d -not -name '.*' -exec basename {} \; | jq -R -s -c 'split("\n")[:-1]')" \
72+ versions_tmp.json > versions_tmp_clean.json
7173
7274 # Ensure "main" is the first entry and others sorted alphabetically
7375 jq '[.[] | select(.version != "main")] | sort_by(.version) | [{"version": "main", "url": "https://eclipse-score.github.io/score/main/"}] + .' versions_tmp_clean.json > versions.json
Original file line number Diff line number Diff line change 2121 runs-on : ubuntu-latest
2222 steps :
2323 - name : Checkout code
24- uses : actions/checkout@v3
24+ uses : actions/checkout@v4
2525 with :
2626 fetch-depth : 0
2727 - name : Run Gitlint Action
Original file line number Diff line number Diff line change 1+ # *******************************************************************************
2+ # Copyright (c) 2024 Contributors to the Eclipse Foundation
3+ #
4+ # See the NOTICE file(s) distributed with this work for additional
5+ # information regarding copyright ownership.
6+ #
7+ # This program and the accompanying materials are made available under the
8+ # terms of the Apache License Version 2.0 which is available at
9+ # https://www.apache.org/licenses/LICENSE-2.0
10+ #
11+ # SPDX-License-Identifier: Apache-2.0
12+ # *******************************************************************************
13+
14+ name : YAML checks
15+ on :
16+ pull_request :
17+ types : [opened, synchronize, reopened]
18+
19+ jobs :
20+ lint :
21+ runs-on : ubuntu-latest
22+ steps :
23+ - uses : actions/checkout@v4
24+
25+ - name : Check github actions
26+ uses : docker://rhysd/actionlint:latest
27+ with :
28+ args : -color
You can’t perform that action at this time.
0 commit comments