From 77759c38922ea551260813d6c66afe7bcac645e9 Mon Sep 17 00:00:00 2001 From: AtomicFS Date: Thu, 14 Nov 2024 15:34:48 +0100 Subject: [PATCH] fix(examples): partial revert of 32583f79 - in action.yml the ARCH change is broken since 32583f79 - for more details see comment in the file Signed-off-by: AtomicFS --- action.yml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/action.yml b/action.yml index 3e38d91a..184f27c6 100644 --- a/action.yml +++ b/action.yml @@ -31,10 +31,14 @@ runs: run: echo "version=v0.6.1" >> "${GITHUB_OUTPUT}" - id: arch + # This ARCH is used to fetch correct executable of firmware-action + # GoReleaser uses 'x86_64' instead of 'amd64' shell: bash run: | if [ ${{ runner.arch }} = "X64" ]; then - echo "arch=amd64" >> "${GITHUB_OUTPUT}" + echo "arch=x86_64" >> "${GITHUB_OUTPUT}" + if [ ${{ runner.arch }} = "amd64" ]; then + echo "arch=x86_64" >> "${GITHUB_OUTPUT}" elif [ ${{ runner.arch }} = "X86" ]; then echo "arch=i386" >> "${GITHUB_OUTPUT}" elif [ ${{ runner.arch }} = "ARM64" ]; then