ci: update VERSION to commit hash for pull requests (#311)

* update VERSION to commit hash for pull requests

* [upload]

* keep version in title
This commit is contained in:
Andrei Radulescu
2024-08-14 21:45:55 +03:00
committed by GitHub
parent 388c799932
commit efde194a5b
2 changed files with 7 additions and 2 deletions
+6 -1
View File
@@ -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
+1 -1
View File
@@ -76,7 +76,7 @@ jobs:
message: |
<!-- _(run_id **${{ github.event.workflow_run.id }}**)_ -->
## :white_check_mark: AGNOS update ${{ env.VERSION }} ready
In an openpilot branch, download <a href="https://gitlab.com/commaai/ci-artifacts/-/raw/agnos-builder/pr-${{ env.PR_NUMBER }}/agnos.json">agnos.json</a> in `system/hardware/tici/` and update `AGNOS_VERSION` to **${{ env.VERSION }}** in `launch_env.sh`.
In an openpilot branch, download <a href="https://gitlab.com/commaai/ci-artifacts/-/raw/agnos-builder/pr-${{ env.PR_NUMBER }}/agnos.json">agnos.json</a> 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`.