File tree Expand file tree Collapse file tree 1 file changed +26
-3
lines changed
Expand file tree Collapse file tree 1 file changed +26
-3
lines changed Original file line number Diff line number Diff line change @@ -2,10 +2,12 @@ name: CI - Fast
22on :
33 workflow_dispatch :
44jobs :
5- build-job :
5+ build :
66 runs-on : ubuntu-latest
77 container :
88 image : ghcr.io/jaster-prj/devcontainer-zephyr-workspace:latest
9+ outputs :
10+ artifact-url : ${{ steps.artifact-upload.outputs.artifact-url }}
911 steps :
1012 - name : link workspace
1113 run : |
3537 run : |
3638 west build -b gartennode app --build-dir build -- -DEXTRA_CONF_FILE=prj.conf
3739 imgtool sign --header-size 0x200 --align 8 --version 1.2 --slot-size 0x30000 --key bootloader/mcuboot/gartennode.pem --pad build/zephyr/zephyr.bin signed_zephyr.bin
40+ tar -czf software.tar.gz signed_zephyr.bin ./app/objdict/objdict.eds
3841 - name : Publish binary
42+ id : artifact-upload
3943 uses : actions/upload-artifact@v4
4044 with :
41- name : signed_zephyr
42- path : zephyr_workspace/signed_zephyr.bin
45+ name : softwarefile
46+ path : zephyr_workspace/software.tar.gz
47+ trigger :
48+ needs : build
49+ runs-on : ubuntu-latest
50+ steps :
51+ - name : Trigger Flash
52+ run : |
53+ # Set the required variables
54+ repo_owner="jaster-prj"
55+ repo_name="gartennode_updater"
56+ event_type="trigger-workflow"
57+ artfifact_url=${{ needs.build.outputs.artifact-url }}
58+
59+ curl -L \
60+ -X POST \
61+ -H "Accept: application/vnd.github+json" \
62+ -H "Authorization: Bearer ${{ secrets.PAT }}" \
63+ -H "X-GitHub-Api-Version: 2022-11-28" \
64+ https://api.github.com/repos/$repo_owner/$repo_name/dispatches \
65+ -d "{\"event_type\": \"$event_type\", \"client_payload\": {\"artfifact_url\": \"$artfifact_url\"}}"
You can’t perform that action at this time.
0 commit comments