mirror of
https://github.com/MiSTer-devel/Distribution_MiSTer.git
synced 2026-05-24 03:03:20 +00:00
Using Python 3.9
This commit is contained in:
committed by
GitHub
parent
ccfd4e4ca8
commit
3c54000701
21
.github/update_distribution.sh
vendored
21
.github/update_distribution.sh
vendored
@@ -681,11 +681,7 @@ copy_file_according_to_extension() {
|
||||
}
|
||||
|
||||
is_mgl_file() {
|
||||
if is_not_file_extension "${1}" "mgl" ; then
|
||||
return 1
|
||||
else
|
||||
return 0
|
||||
fi
|
||||
is_file_extension "${1}" "mgl"
|
||||
}
|
||||
|
||||
is_doc_file() {
|
||||
@@ -722,14 +718,23 @@ is_not_zip_release() {
|
||||
}
|
||||
|
||||
is_not_file_extension() {
|
||||
local INPUT_FILE="${1}"
|
||||
local EXPECTED_EXTENSION="${2}"
|
||||
if is_file_extension "${INPUT_FILE}" "${EXPECTED_EXTENSION}" ; then
|
||||
return 1
|
||||
fi
|
||||
>&2 echo "${PROCESS_URL_CTX}: ${INPUT_FILE} is NOT a ${EXPECTED_EXTENSION^^} file."
|
||||
return 0
|
||||
}
|
||||
|
||||
is_file_extension() {
|
||||
local INPUT_FILE="${1}"
|
||||
local EXPECTED_EXTENSION="${2}"
|
||||
local ACTUAL_EXTENSION="${INPUT_FILE#*.}"
|
||||
if [[ "${INPUT_FILE}" == "" ]] || [[ "${ACTUAL_EXTENSION,,}" != "${EXPECTED_EXTENSION,,}" ]] ; then
|
||||
>&2 echo "${PROCESS_URL_CTX}: ${INPUT_FILE} is NOT a ${EXPECTED_EXTENSION^^} file."
|
||||
return 0
|
||||
return 1
|
||||
fi
|
||||
return 1
|
||||
return 0
|
||||
}
|
||||
|
||||
is_empty_release() {
|
||||
|
||||
4
.github/workflows/update_distribution.yml
vendored
4
.github/workflows/update_distribution.yml
vendored
@@ -16,6 +16,10 @@ jobs:
|
||||
- name: Install apt-get utilities
|
||||
run: sudo apt-get install detox sharutils
|
||||
|
||||
- uses: actions/setup-python@v2
|
||||
with:
|
||||
python-version: '3.9'
|
||||
|
||||
- uses: actions/checkout@v2
|
||||
with:
|
||||
ref: develop
|
||||
|
||||
Reference in New Issue
Block a user