-
-
Notifications
You must be signed in to change notification settings - Fork 782
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: On new release publish, update image tags in sample docker-comp…
…ose files (#3072) * WIP * Add sed commands for image versions --------- Co-authored-by: Kuchenpirat <[email protected]>
- Loading branch information
1 parent
ce110c2
commit 7e51cf0
Showing
1 changed file
with
23 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -43,3 +43,26 @@ jobs: | |
uses: Ilshidur/[email protected] | ||
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-image-tags: | ||
name: Update image tag in sample docker-compose files | ||
needs: | ||
- build-release | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout 🛎 | ||
uses: actions/checkout@v4 | ||
|
||
- 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 | ||
- name: Commit updates | ||
uses: test-room-7/action-update-file@v1 | ||
with: | ||
file-path: | | ||
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 }} |