Skip to content

Commit

Permalink
Fix frontend autoupdate workflow (#134)
Browse files Browse the repository at this point in the history
* Add autoupdate frontend workflow

* Improve update_frontend

* Add gh token to update_frontend

* Checkout code in create-pr job
  • Loading branch information
wendevlin authored Dec 20, 2024
1 parent 9951b77 commit 89002f1
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/update_frontend.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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/*
Expand Down

0 comments on commit 89002f1

Please sign in to comment.