From 5af9aebf5133e56188e13fbb258665eb0642dabb Mon Sep 17 00:00:00 2001 From: tituspijean Date: Fri, 24 Feb 2023 18:16:27 +0100 Subject: [PATCH 1/2] [autopatch] Upgrade auto-updater --- .github/workflows/updater.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/updater.yml b/.github/workflows/updater.yml index fb72ba0..a56d7cb 100644 --- a/.github/workflows/updater.yml +++ b/.github/workflows/updater.yml @@ -14,7 +14,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Fetch the source code - uses: actions/checkout@v2 + uses: actions/checkout@v3 with: token: ${{ secrets.GITHUB_TOKEN }} - name: Run the updater script @@ -33,7 +33,7 @@ jobs: - name: Create Pull Request id: cpr if: ${{ env.PROCEED == 'true' }} - uses: peter-evans/create-pull-request@v3 + uses: peter-evans/create-pull-request@v4 with: token: ${{ secrets.GITHUB_TOKEN }} commit-message: Update to version ${{ env.VERSION }} From 12eb756649a5bbfb7d637c0031906e4540691bf8 Mon Sep 17 00:00:00 2001 From: oufmilo <44617467+oufmilo@users.noreply.github.com> Date: Mon, 27 Feb 2023 17:15:47 +0100 Subject: [PATCH 2/2] Fix install + upgrade CSS --- scripts/install | 1 + scripts/upgrade | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/scripts/install b/scripts/install index d89d281..d21888c 100755 --- a/scripts/install +++ b/scripts/install @@ -47,6 +47,7 @@ ynh_script_progression --message="Initializing database..." --weight=1 $install_dir/venv/bin/python3 "$install_dir/manage.py" migrate $install_dir/venv/bin/python3 "$install_dir/manage.py" initdb +$install_dir/venv/bin/python3 "$install_dir/manage.py" compile_themes $install_dir/venv/bin/python3 "$install_dir/manage.py" collectstatic --no-input diff --git a/scripts/upgrade b/scripts/upgrade index b5203b6..6bb9e8b 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -64,9 +64,10 @@ $install_dir/venv/bin/pip3 install -r "$install_dir/requirements.txt" #================================================= ynh_script_progression --message="Upgrading database..." --weight=1 -$install_dir/venv/bin/python3 "$install_dir/manage.py" migrate +$install_dir/venv/bin/python3 "$install_dir/manage.py" compile_themes $install_dir/venv/bin/python3 "$install_dir/manage.py" collectstatic --no-input $install_dir/venv/bin/python3 "$install_dir/manage.py" populate_streams +$install_dir/venv/bin/python3 "$install_dir/manage.py" migrate #================================================= # SET PERMISSIONS ON BOOKWYRM DIRECTORY