Skip to content

Commit

Permalink
fix(github-actions): fix permission denied from build artifact
Browse files Browse the repository at this point in the history
  • Loading branch information
mildronize committed May 17, 2024
1 parent 1fe1610 commit 94e5be5
Showing 1 changed file with 15 additions and 4 deletions.
19 changes: 15 additions & 4 deletions .github/workflows/e2e.yml
Original file line number Diff line number Diff line change
Expand Up @@ -124,10 +124,21 @@ jobs:
name: ${{ matrix.resource_identifier_key }}
path: ${{ github.workspace }}/${{ env.artifact_download_path}}

- name: Display structure of downloaded files
run: ls -R ${{ github.workspace }}/${{ env.artifact_download_path}}

- name: Build the project
- name: Set execute permissions (Linux/macOS)
if: runner.os != 'Windows'
run: |
chmod +x ${{ github.workspace }}/${{ env.artifact_download_path}}/main
ls -la ${{ github.workspace }}/${{ env.artifact_download_path}}
# Set-ExecutionPolicy Bypass -Scope Process -Force
- name: Set execute permissions (Windows)
if: runner.os == 'Windows'
run: |
icacls.exe "${{ github.workspace }}/${{ env.artifact_download_path}}/main.exe" /grant Everyone:F
icacls.exe "${{ github.workspace }}/${{ env.artifact_download_path}}/main.exe" /T /C /Q
Get-ChildItem -Path "${{ github.workspace }}/${{ env.artifact_download_path}}" -Force | Format-Table -Property Mode,LastWriteTime,Length,Name
- name: Run E2E tests locally
run: pnpm exec nx run @infra/e2e-local:test
env:
CURRENT_WORKING_DIR: ${{ github.workspace }}/${{ env.artifact_download_path}}
Expand Down

0 comments on commit 94e5be5

Please sign in to comment.