Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: CI ignore git safe.directory checks #5659

Merged
merged 2 commits into from
Apr 10, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading