From f1d02a2b09638aafe3ab9e74ba7032df1aed2abb Mon Sep 17 00:00:00 2001 From: boc-the-git <3479092+boc-the-git@users.noreply.github.com> Date: Sun, 28 Jan 2024 22:13:32 +1100 Subject: [PATCH 1/2] WIP --- .github/workflows/release.yml | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 0e1134963b6..f2fa9332a82 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -43,3 +43,26 @@ jobs: uses: Ilshidur/action-discord@0.3.2 with: args: "🚀 Version {{ EVENT_PAYLOAD.release.tag_name }} of Mealie has been released. See the release notes https://github.com/mealie-recipes/mealie/releases/tag/{{ EVENT_PAYLOAD.release.tag_name }}" + + update-docs: + name: Update Version in Documentation + needs: + - build-release + runs-on: ubuntu-latest + steps: + - name: Checkout 🛎 + uses: actions/checkout@v4 + + - name: Modify version strings + run: | + sed ... + sed .... + + - name: Commit updates + uses: test-room-7/action-update-file@v1 + with: + file-path: | + path/to/file + path/to/file2 + commit-msg: Update resources + github-token: ${{ secrets.GITHUB_TOKEN }} From 5c0c790ff37f7440553b6b444567899a381033ef Mon Sep 17 00:00:00 2001 From: Brendan Date: Mon, 29 Jan 2024 10:36:04 +0000 Subject: [PATCH 2/2] Add sed commands for image versions --- .github/workflows/release.yml | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index f2fa9332a82..78162ddcf6c 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -44,8 +44,8 @@ jobs: with: args: "🚀 Version {{ EVENT_PAYLOAD.release.tag_name }} of Mealie has been released. See the release notes https://github.com/mealie-recipes/mealie/releases/tag/{{ EVENT_PAYLOAD.release.tag_name }}" - update-docs: - name: Update Version in Documentation + update-image-tags: + name: Update image tag in sample docker-compose files needs: - build-release runs-on: ubuntu-latest @@ -55,14 +55,14 @@ jobs: - name: Modify version strings run: | - sed ... - sed .... + 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 - name: Commit updates uses: test-room-7/action-update-file@v1 with: file-path: | - path/to/file - path/to/file2 - commit-msg: Update resources + docs/docs/documentation/getting-started/installation/sqlite.md + docs/docs/documentation/getting-started/installation/postgres.md + commit-msg: "Change image tag, for release ${{ github.event.release.tag_name }}" github-token: ${{ secrets.GITHUB_TOKEN }}