diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml
index 0a02e8e..bdf7afc 100644
--- a/.github/workflows/build.yaml
+++ b/.github/workflows/build.yaml
@@ -50,13 +50,18 @@ jobs:
- name: Build kernel
run: ./build_kernel.sh
+ - name: Update VERSION
+ if: github.event_name == 'pull_request'
+ run: |
+ echo -n ${{ github.event.pull_request.head.sha }} > VERSION
+
- name: Build system
run: ./build_system.sh
- name: Package and OTA push
if: "contains(env.LAST_COMMIT_MESSAGE, '[upload]')"
env:
- AGNOS_UPDATE_URL: https://gitlab.com/commaai/ci-artifacts/-/raw/agnos-builder/pr-${{ github.event.number }}/
+ AGNOS_UPDATE_URL: https://gitlab.com/commaai/ci-artifacts/-/raw/agnos-builder/pr-${{ github.event.number }}
run: |
scripts/package_ota.py
diff --git a/.github/workflows/push-and-comment.yaml b/.github/workflows/push-and-comment.yaml
index 5c2f19b..817fa96 100644
--- a/.github/workflows/push-and-comment.yaml
+++ b/.github/workflows/push-and-comment.yaml
@@ -76,7 +76,7 @@ jobs:
message: |
## :white_check_mark: AGNOS update ${{ env.VERSION }} ready
- In an openpilot branch, download agnos.json in `system/hardware/tici/` and update `AGNOS_VERSION` to **${{ env.VERSION }}** in `launch_env.sh`.
+ In an openpilot branch, download agnos.json in `system/hardware/tici/` and update `AGNOS_VERSION` to "${{ env.VERSION }}" in `launch_env.sh`.
For flashing locally, download and unarchive the images in `agnos-builder/output` and flash with `./flash_all.sh`.