fix electron
This commit is contained in:
parent
2c18610808
commit
30cf750001
13
.github/actions/upload-blob-report/action.yml
vendored
13
.github/actions/upload-blob-report/action.yml
vendored
|
|
@ -12,29 +12,34 @@ inputs:
|
||||||
runs:
|
runs:
|
||||||
using: "composite"
|
using: "composite"
|
||||||
steps:
|
steps:
|
||||||
- name: Warn if directory does not exist
|
- id: check_dir
|
||||||
|
name: Warn if directory does not exist
|
||||||
shell: bash
|
shell: bash
|
||||||
run: |
|
run: |
|
||||||
if [[ ! -d "${{ inputs.report_dir }}" ]]; then
|
if [[ ! -d "${{ inputs.report_dir }}" ]]; then
|
||||||
echo "Directory '${{ inputs.report_dir }}' does not exist";
|
echo "Directory '${{ inputs.report_dir }}' does not exist";
|
||||||
|
echo "dir_exists=false" >> $GITHUB_OUTPUT
|
||||||
exit 0;
|
exit 0;
|
||||||
|
else
|
||||||
|
echo "dir_exists=true" >> $GITHUB_OUTPUT
|
||||||
fi
|
fi
|
||||||
- name: Integrity check
|
- name: Integrity check
|
||||||
|
if: ${{ steps.check_dir.outputs.dir_exists == 'true' }}
|
||||||
shell: bash
|
shell: bash
|
||||||
run: find "${{ inputs.report_dir }}" -name "*.zip" -exec unzip -t {} \;
|
run: find "${{ inputs.report_dir }}" -name "*.zip" -exec unzip -t {} \;
|
||||||
- name: Upload blob report to GitHub
|
- name: Upload blob report to GitHub
|
||||||
if: ${{ !cancelled() && github.event_name == 'pull_request' }}
|
if: ${{ !cancelled() && github.event_name == 'pull_request' && steps.check_dir.outputs.dir_exists == 'true' }}
|
||||||
uses: actions/upload-artifact@v4
|
uses: actions/upload-artifact@v4
|
||||||
with:
|
with:
|
||||||
name: blob-report-${{ inputs.job_name }}
|
name: blob-report-${{ inputs.job_name }}
|
||||||
path: ${{ inputs.report_dir }}/**
|
path: ${{ inputs.report_dir }}/**
|
||||||
retention-days: 7
|
retention-days: 7
|
||||||
- name: Write triggering pull request number in a file
|
- name: Write triggering pull request number in a file
|
||||||
if: ${{ !cancelled() && github.event_name == 'pull_request' }}
|
if: ${{ !cancelled() && github.event_name == 'pull_request' && steps.check_dir.outputs.dir_exists == 'true' }}
|
||||||
shell: bash
|
shell: bash
|
||||||
run: echo '${{ github.event.number }}' > pull_request_number.txt;
|
run: echo '${{ github.event.number }}' > pull_request_number.txt;
|
||||||
- name: Upload artifact with the pull request number
|
- name: Upload artifact with the pull request number
|
||||||
if: ${{ !cancelled() && github.event_name == 'pull_request' }}
|
if: ${{ !cancelled() && github.event_name == 'pull_request' && steps.check_dir.outputs.dir_exists == 'true' }}
|
||||||
uses: actions/upload-artifact@v4
|
uses: actions/upload-artifact@v4
|
||||||
with:
|
with:
|
||||||
name: pull-request-${{ inputs.job_name }}
|
name: pull-request-${{ inputs.job_name }}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue