Skip to content

Commit

Permalink
fix: Bump other version numbers in GH workflow (#3840)
Browse files Browse the repository at this point in the history
  • Loading branch information
michael-genson authored Jul 12, 2024
1 parent 1491016 commit d0f8b57
Show file tree
Hide file tree
Showing 4 changed files with 41 additions and 4 deletions.
9 changes: 7 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
32 changes: 32 additions & 0 deletions .github/workflows/scheduled-checks.yml
Original file line number Diff line number Diff line change
@@ -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/[email protected]

- 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`"
2 changes: 1 addition & 1 deletion frontend/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "mealie",
"version": "1.0.0",
"version": "1.10.1",
"private": true,
"scripts": {
"dev": "nuxt",
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ authors = ["Hayden <[email protected]>"]
description = "A Recipe Manager"
license = "AGPL"
name = "mealie"
version = "1.0.0b"
version = "1.10.1"

[tool.poetry.scripts]
start = "mealie.app:main"
Expand Down

0 comments on commit d0f8b57

Please sign in to comment.