-
-
Notifications
You must be signed in to change notification settings - Fork 53
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Enhance package validation + Remove Symbolic Links (#267)
- Loading branch information
1 parent
70dccd1
commit 57786e7
Showing
3 changed files
with
33 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -125,7 +125,6 @@ jobs: | |
GITHUB_ACCESS_TOKEN: ${{ secrets.GH_RELEASE_PAT }} | ||
run: make build | ||
|
||
|
||
job_artifacts: | ||
name: Upload Artifacts | ||
needs: [job_build, job_carthage_build] | ||
|
@@ -160,3 +159,34 @@ jobs: | |
name: ${{ github.sha }} | ||
path: | | ||
${{ github.workspace }}/sentry-cordova-* | ||
job_check_symlink: | ||
name: Check for Symbolic Links | ||
needs: [job_artifacts] | ||
runs-on: macos-latest | ||
defaults: | ||
run: | ||
shell: pwsh | ||
steps: | ||
- name: Checkout | ||
uses: actions/[email protected] | ||
|
||
- name: Download test app artifact | ||
uses: actions/download-artifact@v2 | ||
with: | ||
name: ${{ github.sha }} | ||
path: | | ||
${{ github.workspace }}/artifact | ||
- name: Extract artifact | ||
run: | | ||
cd ${{ github.workspace }}/artifact | ||
$bundleName = (Get-Item *.tgz).Name | ||
tar -xvzf "$bundleName" | ||
- name: Check if package contains any Symlink | ||
run: | | ||
$symLinks = (find "${{ github.workspace }}" -type l -ls) | ||
if ($null -ne $symLinks) { | ||
Write-Error "Atfifact contains illegal SymLinks`n$symLinks" | ||
} | ||
Write-Output "No Symbolic Links found, all good :)" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters