diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 66b5898c2..5290fea05 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -61,10 +61,15 @@ jobs: - name: Checkout 🛎 uses: actions/checkout@v4 + - name: Extract Version From Tag Name + run: echo "VERSION_NUM=$(echo ${{ github.event.release.tag_name }} | sed 's/^v//')" >> $GITHUB_ENV + - name: Modify version strings run: | - sed -i 's/:v[0-9]*.[0-9]*.[0-9]*/:${{ github.event.release.tag_name }}/' docs/docs/documentation/getting-started/installation/sqlite.md - sed -i 's/:v[0-9]*.[0-9]*.[0-9]*/:${{ github.event.release.tag_name }}/' docs/docs/documentation/getting-started/installation/postgres.md + sed -i 's/:v[0-9]*.[0-9]*.[0-9]*/:v${{ env.VERSION_NUM }}/' docs/docs/documentation/getting-started/installation/sqlite.md + sed -i 's/:v[0-9]*.[0-9]*.[0-9]*/:v${{ env.VERSION_NUM }}/' docs/docs/documentation/getting-started/installation/postgres.md + sed -i 's/^version = "[^"]*"/version = "${{ env.VERSION_NUM }}"/' pyproject.toml + sed -i 's/^\s*"version": "[^"]*"/"version": "${{ env.VERSION_NUM }}"/' frontend/package.json - name: Create Pull Request uses: peter-evans/create-pull-request@v6 diff --git a/.github/workflows/scheduled-checks.yml b/.github/workflows/scheduled-checks.yml new file mode 100644 index 000000000..af30b83c3 --- /dev/null +++ b/.github/workflows/scheduled-checks.yml @@ -0,0 +1,32 @@ +name: Scheduled Checks + +on: + schedule: + # Every monday at 7 AM + - cron: 0 7 * * 1 + +jobs: + update: + runs-on: ubuntu-latest + permissions: + contents: write + pull-requests: write + steps: + - name: Checkout 🛎 + uses: actions/checkout@v4 + + - name: Update pre-commit Hooks + uses: vrslev/pre-commit-autoupdate@v1.0.0 + + - name: Create Pull Request + uses: peter-evans/create-pull-request@v6 + # This doesn't currently work for us because it creates the PR but the workflows don't run. + # TODO: Provide a personal access token as a parameter here, that solves that problem. + # https://github.com/peter-evans/create-pull-request + with: + commit-message: "Update pre-commit hooks" + branch: "fix/update-pre-commit-hooks" + delete-branch: true + base: mealie-next + title: "fix(auto): Update pre-commit hooks" + body: "Auto-generated by `.github/workflows/scheduled-checks.yml`" diff --git a/frontend/package.json b/frontend/package.json index 590e964fe..247752b39 100644 --- a/frontend/package.json +++ b/frontend/package.json @@ -1,6 +1,6 @@ { "name": "mealie", - "version": "1.0.0", + "version": "1.10.1", "private": true, "scripts": { "dev": "nuxt", diff --git a/pyproject.toml b/pyproject.toml index 46c45081f..ea86245ba 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -3,7 +3,7 @@ authors = ["Hayden "] description = "A Recipe Manager" license = "AGPL" name = "mealie" -version = "1.0.0b" +version = "1.10.1" [tool.poetry.scripts] start = "mealie.app:main"