mirror of
https://github.com/VSCodium/vscodium.git
synced 2026-04-11 16:27:18 +10:00
fix: add git workaround [skip ci]
This commit is contained in:
2
.github/workflows/insider-macos.yml
vendored
2
.github/workflows/insider-macos.yml
vendored
@@ -54,7 +54,7 @@ jobs:
|
|||||||
- name: Switch to relevant branch
|
- name: Switch to relevant branch
|
||||||
env:
|
env:
|
||||||
PULL_REQUEST_ID: ${{ github.event.inputs.checkout_pr }}
|
PULL_REQUEST_ID: ${{ github.event.inputs.checkout_pr }}
|
||||||
run: ./get_pr.sh
|
run: . get_pr.sh
|
||||||
|
|
||||||
- name: Setup Node.js environment
|
- name: Setup Node.js environment
|
||||||
uses: actions/setup-node@v4
|
uses: actions/setup-node@v4
|
||||||
|
|||||||
2
.github/workflows/stable-macos.yml
vendored
2
.github/workflows/stable-macos.yml
vendored
@@ -53,7 +53,7 @@ jobs:
|
|||||||
- name: Switch to relevant branch
|
- name: Switch to relevant branch
|
||||||
env:
|
env:
|
||||||
PULL_REQUEST_ID: ${{ github.event.inputs.checkout_pr }}
|
PULL_REQUEST_ID: ${{ github.event.inputs.checkout_pr }}
|
||||||
run: ./get_pr.sh
|
run: . get_pr.sh
|
||||||
|
|
||||||
- name: Setup Node.js environment
|
- name: Setup Node.js environment
|
||||||
uses: actions/setup-node@v4
|
uses: actions/setup-node@v4
|
||||||
|
|||||||
@@ -2,6 +2,11 @@
|
|||||||
|
|
||||||
set -e
|
set -e
|
||||||
|
|
||||||
|
# git workaround
|
||||||
|
if [[ "${CI_BUILD}" != "no" ]]; then
|
||||||
|
git config --global --add safe.directory "/__w/$( echo "${GITHUB_REPOSITORY}" | awk '{print tolower($0)}' )"
|
||||||
|
fi
|
||||||
|
|
||||||
if [[ -n "${PULL_REQUEST_ID}" ]]; then
|
if [[ -n "${PULL_REQUEST_ID}" ]]; then
|
||||||
BRANCH_NAME=$( git rev-parse --abbrev-ref HEAD )
|
BRANCH_NAME=$( git rev-parse --abbrev-ref HEAD )
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user