From 359fd6bffd6d57bed3a11b1acb2ebb0f9f9494c8 Mon Sep 17 00:00:00 2001 From: Carlos Pereira Atencio Date: Mon, 16 Sep 2024 18:16:21 +0100 Subject: [PATCH] ci: Update actions to resolve job run failure. (#807) --- .github/workflows/build.yml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index d50fb15e2..4ed68d77c 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -11,10 +11,10 @@ jobs: runs-on: ubuntu-20.04 name: Build MicroPython steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 # Yotta has some issues with Python 3.7+ - name: Install Python 3.6 - uses: actions/setup-python@v3 + uses: actions/setup-python@v5 with: python-version: 3.6 - name: Install GNU Arm Embedded Toolchain (arm-none-eabi-gcc) @@ -41,9 +41,9 @@ jobs: - run: make all - name: Process date for artifact filename id: date - run: echo "::set-output name=date::$(date +'%Y-%m-%d')" + run: echo "BUILD_DATE=$(date +'%Y-%m-%d')" >> $GITHUB_ENV - name: Upload hex file - uses: actions/upload-artifact@v1 + uses: actions/upload-artifact@v4 with: - name: microbitv1-micropython-${{ steps.date.outputs.date }}-${{ github.sha }}.hex + name: microbitv1-micropython-${{ env.BUILD_DATE }}-${{ github.sha }}.hex path: build/firmware.hex