mirror of
https://github.com/commaai/agnos-builder.git
synced 2026-07-16 20:32:06 +08:00
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:
@@ -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
|
||||
|
||||
|
||||
@@ -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`.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user