From 89002f1beac45d81013da44249f408a9241e7fa6 Mon Sep 17 00:00:00 2001 From: Wendelin <12148533+wendevlin@users.noreply.github.com> Date: Fri, 20 Dec 2024 16:04:04 +0100 Subject: [PATCH] Fix frontend autoupdate workflow (#134) * Add autoupdate frontend workflow * Improve update_frontend * Add gh token to update_frontend * Checkout code in create-pr job --- .github/workflows/update_frontend.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/workflows/update_frontend.yml b/.github/workflows/update_frontend.yml index 4c17425..a6b25bb 100644 --- a/.github/workflows/update_frontend.yml +++ b/.github/workflows/update_frontend.yml @@ -34,6 +34,8 @@ jobs: - name: Check if there is no open PR with this version if: steps.check_version.outputs.skip != 'true' id: check_existing_pr + env: + GH_TOKEN: ${{ github.token }} run: | PR=$(gh pr list --state open --base main --json title --search "Autoupdate frontend to version $LATEST_VERSION") if [[ "$PR" != "[]" ]]; then @@ -45,6 +47,8 @@ jobs: needs: check-version if: needs.check-version.outputs.skip != 'true' steps: + - name: Checkout code + uses: actions/checkout@v4 - name: Clear www folder run: | rm -rf rootfs/usr/share/www/*