Commit 4c15cd0 1 parent b99d2eb commit 4c15cd0 Copy full SHA for 4c15cd0
File tree 1 file changed +7
-14
lines changed
1 file changed +7
-14
lines changed Original file line number Diff line number Diff line change @@ -13,31 +13,24 @@ jobs:
13
13
- name : Checkout repository
14
14
uses : actions/checkout@v2
15
15
16
- - name : Get Latest Release
17
- id : latest_API_version
18
-
19
- with :
20
- owner : arduino
21
- repo : ArduinoCore-API
22
-
23
- - name : Set ArduinoCore-API latest version as env variable
24
- run : |
25
- echo "LATEST_TAG_API=$(echo ${{ steps.latest_API_version.outputs.latest_tag }})" >> $GITHUB_ENV
26
-
27
16
- name : Checkout ArduinoCore-API
28
17
uses : actions/checkout@v2
29
18
with :
30
19
repository : arduino/ArduinoCore-API
31
- ref : ${{ env.LATEST_TAG_API }}
32
20
path : extras/ArduinoCore-API
33
21
34
22
- name : Check if API should be compiled in the core
35
23
id : checkapi
36
24
run : |
37
25
if [[ $(grep -r api platform.txt) ]]; then echo "::set-output name=IS_API::true"; fi
38
26
39
- - name : Integrate ArduinoCore-API
40
- run : mv "$GITHUB_WORKSPACE/extras/ArduinoCore-API/api" "$GITHUB_WORKSPACE/cores/arduino"
27
+ - name : Checkout latest tag of ArduinoCore-API and add it to the core
28
+ run : |
29
+ cd extras/ArduinoCore-API
30
+ git fetch --tags
31
+ git checkout $(git describe --tags $(git rev-list --tags --max-count=1))
32
+ cd ../..
33
+ mv "$GITHUB_WORKSPACE/extras/ArduinoCore-API/api" "$GITHUB_WORKSPACE/cores/arduino"
41
34
if : steps.checkapi.outputs.IS_API == 'true'
42
35
43
36
- name : Remove ArduinoCore-API
You can’t perform that action at this time.
0 commit comments