Add checks for zero indexes on fill patterns to match fills. (#1638)

Co-authored-by: Bart Louwers <bart@emeel.net>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
This commit is contained in:
Tim Sylvester
2023-09-14 16:10:56 -07:00
committed by GitHub
parent 82ab67aa8d
commit 2d71683feb
7 changed files with 34 additions and 8 deletions

View File

@@ -23,7 +23,10 @@ runs:
let matchArtifact = allArtifacts.data.artifacts.filter((artifact) => {
return artifact.name == "${{ inputs.artifact-name }}"
})[0];
if (!matchArtifact) throw new Error("Could not find artifact ${{ inputs.artifact-name }}");
if (!matchArtifact) {
console.log("Could not find artifact '${{ inputs.artifact-name }}'");
return;
}
let download = await github.rest.actions.downloadArtifact({
owner: context.repo.owner,
repo: context.repo.repo,
@@ -33,8 +36,15 @@ runs:
let fs = require('fs');
fs.writeFileSync(`${process.env.GITHUB_WORKSPACE}/${{ inputs.artifact-name }}.zip`, Buffer.from(download.data));
- name: "Check .zip file existence"
id: zip_exists
uses: andstor/file-existence-action@v2.0.0
with:
files: ${{ inputs.artifact-name }}.zip
- name: Unzip artifact
shell: bash
if: steps.zip_exists.outputs.files_exists == 'true'
run: unzip ${{ inputs.artifact-name }}.zip
- name: "Check file existence"

View File

@@ -45,6 +45,10 @@ jobs:
IS_LOCAL_DEVELOPMENT: false
MLN_ANDROID_STL: c++_static
steps:
- name: Update Apt Package Cache
run: sudo apt-get update
working-directory: .
- name: Free Disk Space (Ubuntu)
uses: jlumbroso/free-disk-space@main
with: