Skip to content

Commit

Permalink
changed data source to dl.espressif.com/dl/esp-idf/idf_versions.js
Browse files Browse the repository at this point in the history
  • Loading branch information
tobozo committed May 21, 2024
1 parent ea2e91e commit 23c4945
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
6 changes: 3 additions & 3 deletions .github/scripts/esp-idf-versions.php
Original file line number Diff line number Diff line change
Expand Up @@ -73,13 +73,13 @@
array_push($fqbns, ...$hardcoded_fqbns);

// print the json and exit
php_die( json_encode( [ "esp-idf-fqbn" => $fqbns ], JSON_PRETTY_PRINT ) );
php_die( json_encode( [ "esp-idf-fqbn" => $fqbns ], JSON_PRETTY_PRINT ), 0 );

// same as die() with with end of line
function php_die($msg)
function php_die($msg, $errcode=1)
{
echo $msg.PHP_EOL;
exit(1);
exit($errcode);
}


Expand Down
3 changes: 1 addition & 2 deletions .github/workflows/IDFBuild.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,9 +42,8 @@ jobs:
- name: Setup matrix
id: set-matrix
run: |
php .github/scripts/esp-idf-versions.php
matrix=`php .github/scripts/esp-idf-versions.php`
echo $matrix | jq # debug
# echo $matrix | jq # debug
matrix="${matrix//'%'/'%25'}" # escape percent entities
matrix="${matrix//$'\n'/''}" # remove lf
matrix="${matrix//$'\r'/''}" # remove cr
Expand Down

0 comments on commit 23c4945

Please sign in to comment.