fix: Mark GITHUB_WORKSPACE a safe git directory (#260)
* fix: Mark `GITHUB_WORKSPACE` a safe git directory * Add integration test
This commit is contained in:
@@ -61,6 +61,24 @@ jobs:
|
||||
with:
|
||||
ignore_missing: true
|
||||
|
||||
runs-on-container:
|
||||
runs-on: ubuntu-latest
|
||||
container:
|
||||
image: node:18.17
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
with:
|
||||
fetch-depth: 0
|
||||
|
||||
- name: Create a staging release
|
||||
uses: ./
|
||||
env:
|
||||
SENTRY_AUTH_TOKEN: ${{ secrets.SENTRY_AUTH_TOKEN }}
|
||||
SENTRY_LOG_LEVEL: debug
|
||||
with:
|
||||
ignore_missing: true
|
||||
|
||||
mock-release:
|
||||
strategy:
|
||||
matrix:
|
||||
|
||||
+1
-1
@@ -62,7 +62,7 @@ runs:
|
||||
if: ${{ inputs.disable_safe_directory != 'true' }}
|
||||
shell: bash
|
||||
run: |
|
||||
git config --global --add safe.directory ${{ github.workspace }}
|
||||
git config --global --add safe.directory "$GITHUB_WORKSPACE"
|
||||
|
||||
- name: Get node version
|
||||
shell: bash
|
||||
|
||||
Reference in New Issue
Block a user