Skip to content

Commit

Permalink
fix(actions/templates): init submodule in gitlint job's checkout action
Browse files Browse the repository at this point in the history
The CI repo is supposed to be included as a submodule in other repos.
Therefore the template for the workflows that use the CI submodule must be
configured to initialize submodules in each job in the checkout action.
Otherwise, the job will fail due to not finding the ci submodule
artifacts.

Signed-off-by: Jose Martins <[email protected]>
  • Loading branch information
josecm authored and danielRep committed Sep 30, 2023
1 parent 31401f8 commit 715fb59
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions .github/workflows/templates/base.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ jobs:
steps:
- uses: actions/checkout@v2
with:
submodules: recursive
fetch-depth: 0
- run: git config --global --add safe.directory $(realpath .)
- if: ${{ github.event_name == 'pull_request' }}
Expand Down

0 comments on commit 715fb59

Please sign in to comment.