build: skip chromium git cookie on forks (#45735)
This commit is contained in:
parent
d8baceb08c
commit
5ea885c87f
1 changed files with 2 additions and 2 deletions
|
@ -4,7 +4,7 @@ runs:
|
||||||
using: "composite"
|
using: "composite"
|
||||||
steps:
|
steps:
|
||||||
- name: Set the git cookie from chromium.googlesource.com (Unix)
|
- name: Set the git cookie from chromium.googlesource.com (Unix)
|
||||||
if: ${{ runner.os != 'Windows' }}
|
if: ${{ runner.os != 'Windows' && env.CHROMIUM_GIT_COOKIE }}
|
||||||
shell: bash
|
shell: bash
|
||||||
run: |
|
run: |
|
||||||
eval 'set +o history' 2>/dev/null || setopt HIST_IGNORE_SPACE 2>/dev/null
|
eval 'set +o history' 2>/dev/null || setopt HIST_IGNORE_SPACE 2>/dev/null
|
||||||
|
@ -18,7 +18,7 @@ runs:
|
||||||
__END__
|
__END__
|
||||||
eval 'set -o history' 2>/dev/null || unsetopt HIST_IGNORE_SPACE 2>/dev/null
|
eval 'set -o history' 2>/dev/null || unsetopt HIST_IGNORE_SPACE 2>/dev/null
|
||||||
- name: Set the git cookie from chromium.googlesource.com (Windows)
|
- name: Set the git cookie from chromium.googlesource.com (Windows)
|
||||||
if: ${{ runner.os == 'Windows' }}
|
if: ${{ runner.os == 'Windows' && env.CHROMIUM_GIT_COOKIE_WINDOWS_STRING }}
|
||||||
shell: cmd
|
shell: cmd
|
||||||
run: |
|
run: |
|
||||||
git config --global http.cookiefile "%USERPROFILE%\.gitcookies"
|
git config --global http.cookiefile "%USERPROFILE%\.gitcookies"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue