From 5d2344b32887d8bdc456c5ce530665c371eade02 Mon Sep 17 00:00:00 2001 From: WolverinDEV Date: Sun, 10 Nov 2024 21:37:50 +0900 Subject: [PATCH] fix(ci): fixing UEFI mapper workflow invoke --- .github/workflows/invoke-mapper.ps1 | 2 +- .github/workflows/rust.yml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/invoke-mapper.ps1 b/.github/workflows/invoke-mapper.ps1 index 2411500..d142294 100644 --- a/.github/workflows/invoke-mapper.ps1 +++ b/.github/workflows/invoke-mapper.ps1 @@ -7,7 +7,7 @@ $Payload = @{ "event_type" = "driver_updated" "client_payload" = @{ "driver_authorization" = "$env:DRIVER_GITHUB_TOKEN" - "driver_url" = "https://api.github.com/repos/Valthrun/valthrun-driver/actions/artifacts/$env:DRIVER_ARTIFACT_ID/zip" + "driver_url" = "$env:DRIVER_ARTIFACT_URL" "driver_version" = "$env:GITHUB_REF_NAME-$($env:GITHUB_SHA.Substring(0, 7))" } } diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index c0c894b..941cae8 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -95,7 +95,7 @@ jobs: env: UEFI_MAPPER_GITHUB_TOKEN: ${{ secrets.UEFI_MAPPER_GITHUB_TOKEN }} DRIVER_GITHUB_TOKEN: ${{ secrets.DRIVER_GITHUB_TOKEN || secrets.GITHUB_TOKEN }} - DRIVER_ARTIFACT_ID: ${{ steps.uefi-driver-upload.outputs.artifact-id }} + DRIVER_ARTIFACT_URL: ${{ steps.uefi-driver-upload.outputs.artifact-url }} GITHUB_SHA: ${{ github.sha }} GITHUB_REF_NAME: ${{ github.ref_name || 'unknown' }} if: ${{ env.UEFI_MAPPER_GITHUB_TOKEN != '' }}