Skip to content

Commit

Permalink
minor fixups
Browse files Browse the repository at this point in the history
  • Loading branch information
seanbudd committed Sep 6, 2024
1 parent 9245935 commit 78649c4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/checkAddonUrlAndHash.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ module.exports = ({core}, globPattern) => {
return;
}
})
return;
}
// if hash mismatches, delete the file
hash.setEncoding('hex');
Expand All @@ -39,12 +40,12 @@ module.exports = ({core}, globPattern) => {
exec(`rm ${file}`, (err, stdout, stderr) => {
if (stderr !== '' || err !== null) {
console.log(`err: ${err}`);
console.log(`stdout: ${stdout}`);
console.log(`stderr: ${stderr}`);
core.setFailed('Failed to delete add-on file');
return;
}
})
return;
}
})
});
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/validateAllAddons.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ jobs:
git commit -m "Delete invalid downloads"
- name: create PR for deleting invalid downloads
if: always()
run: gh pr create -B master -H delInvalidDownloads${{ github.run_number }} --title 'Delete invalid add-ons' --body 'Delete add-ons with invalid download links or invalid file hashes'
run: gh pr create -B ${{ github.base_ref }} -H delInvalidDownloads${{ github.run_number }} --title 'Delete invalid add-ons' --body 'Delete add-ons with invalid download links or invalid file hashes'
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Checkout validate repo
Expand Down

0 comments on commit 78649c4

Please sign in to comment.