Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
A
arduino-pico
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
xpstem
arduino-pico
Commits
88485e56
Commit
88485e56
authored
May 28, 2021
by
Earle F. Philhower, III
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
More CI packaging work
parent
e339e4f5
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
20 deletions
+8
-20
package/build_boards_manager_package.sh
package/build_boards_manager_package.sh
+8
-20
No files found.
package/build_boards_manager_package.sh
View file @
88485e56
...
...
@@ -134,29 +134,17 @@ if [ -z "$is_nightly" ]; then
.packages[0].platforms[0].checksum =
\"
SHA-256:
$sha
\"
"
fi
cat
$srcdir
/package/package_pico_index.template.json |
\
jq
"
$jq_arg
"
>
package_rp2040_index.json
#exit
if
[
-z
"prev_any_release"
]
;
then
# Use Github API token, if available
curl_gh_token_arg
=()
if
[
!
-z
"
$CI_GITHUB_API_KEY
"
]
;
then
curl_gh_token_arg
=(
-H
"Authorization: token
$CI_GITHUB_API_KEY
"
)
fi
# Get previous release name
curl
--silent
"
${
curl_gh_token_arg
[@]
}
"
https://api.github.com/repos/earlephilhower/arduino-pico/releases
>
releases.json
# Previous final release (prerelase == false)
prev_release
=
$(
jq
-r
'. | map(select(.draft == false and .prerelease == false)) | sort_by(.created_at | - fromdateiso8601) | .[0].tag_name'
releases.json
)
# Previous release (possibly a pre-release)
prev_any_release
=
$(
jq
-r
'. | map(select(.draft == false)) | sort_by(.created_at | - fromdateiso8601) | .[0].tag_name'
releases.json
)
# Previous pre-release
prev_pre_release
=
$(
jq
-r
'. | map(select(.draft == false and .prerelease == true)) | sort_by(.created_at | - fromdateiso8601) | .[0].tag_name'
releases.json
)
else
prev_any_release
=
$prev_release
fi
# Get previous release name
curl
--silent
https://api.github.com/repos/earlephilhower/arduino-pico/releases
>
releases.json
# Previous final release (prerelase == false)
prev_release
=
$(
jq
-r
'. | map(select(.draft == false and .prerelease == false)) | sort_by(.created_at | - fromdateiso8601) | .[0].tag_name'
releases.json
)
# Previous release (possibly a pre-release)
prev_any_release
=
$(
jq
-r
'. | map(select(.draft == false)) | sort_by(.created_at | - fromdateiso8601) | .[0].tag_name'
releases.json
)
# Previous pre-release
prev_pre_release
=
$(
jq
-r
'. | map(select(.draft == false and .prerelease == true)) | sort_by(.created_at | - fromdateiso8601) | .[0].tag_name'
releases.json
)
echo
"Previous release:
$prev_release
"
echo
"Previous (pre-?)release:
$prev_any_release
"
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment