mirror of
https://tvoygit.ru/Djam/r11_workflows.git
synced 2025-02-23 08:52:46 +00:00
update action.yml
This commit is contained in:
parent
742b03ca73
commit
46953b326b
1 changed files with 31 additions and 1 deletions
32
action.yml
32
action.yml
|
@ -39,7 +39,37 @@ runs:
|
|||
|
||||
- name: Download sources artifacts
|
||||
run: |
|
||||
./download_sources.sh
|
||||
abfyml=.abf.yml
|
||||
if [ -e "${abfyml}" ]; then
|
||||
echo "parsing file '${abfyml}'"
|
||||
sed -ne '/^[Ss]ources\:.*$/,$p' ${abfyml} | \
|
||||
sed -rn '$G;s/^[\"'\''[:space:]]*([^[:space:]:\"'\'']+)[\"'\''[:space:]]*.*[\"'\''[:space:]]*([0-9a-fA-F]{40})[\"'\''[:space:]]*$/\1 \2/p' | \
|
||||
while read -r file sha; do
|
||||
echo -n "found entry: file=${file} ... "
|
||||
if [ -e "${file}" ]; then
|
||||
if echo "${sha} ${file}" | sha1sum -c --status; then
|
||||
echo "sha1sum correct"
|
||||
else
|
||||
echo "sha1sum INCORRECT! skipping..."
|
||||
fi
|
||||
else
|
||||
echo -n "try to download... "
|
||||
if curl -L "https://file-store.rosalinux.ru/download/${sha}" -o "${file}"; then
|
||||
echo "ok"
|
||||
echo -n "check sum... "
|
||||
if echo "${sha} ${file}" | sha1sum -c --status; then
|
||||
echo "ok"
|
||||
else
|
||||
echo "sha1sum INCORRECT! skipping..."
|
||||
echo "remove file ${file}"
|
||||
rm -f "${file}"
|
||||
fi
|
||||
else
|
||||
echo "filed! skipping..."
|
||||
fi
|
||||
fi
|
||||
done
|
||||
fi
|
||||
|
||||
- name: Linter
|
||||
run: |
|
||||
|
|
Loading…
Add table
Reference in a new issue