Skip to content

Commit

Permalink
fix(hotfix): CI ignore git safe.directory checks (#5659)
Browse files Browse the repository at this point in the history
  • Loading branch information
ludamad authored Apr 10, 2024
1 parent 9816c1a commit 9fc3fe3
Showing 1 changed file with 10 additions and 8 deletions.
18 changes: 10 additions & 8 deletions .github/ci-setup-action/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,14 @@ runs:
# define an action, runs in OS of caller
using: composite
steps:
# Since we use multiple runners, dont want them clashing
- name: Generate Unique Home Directory
shell: bash
run: |
RUN_HOME=~/run-$RANDOM-$(date +%s)
echo HOME=$RUN_HOME >> $GITHUB_ENV
mkdir -p $RUN_HOME
- name: Cache Submodules
id: cache-submodules
uses: actions/cache@v3
Expand All @@ -18,16 +26,10 @@ runs:
key: submodules-${{ hashFiles('.gitmodules') }}-spot-ebs

- name: Checkout Submodules
shell: bash
run: git submodule sync --recursive && git submodule update --init --recursive

# Since we use multiple runners, dont want them clashing
- name: Generate Unique Home Directory
shell: bash
run: |
RUN_HOME=~/run-$RANDOM-$(date +%s)
echo HOME=$RUN_HOME >> $GITHUB_ENV
mkdir -p $RUN_HOME
git config --global --add safe.directory '*'
git submodule sync --recursive && git submodule update --init --recursive
# TODO reconsider how jq gets into image
- name: Setup jq
Expand Down

0 comments on commit 9fc3fe3

Please sign in to comment.