Skip to content

Commit

Permalink
Automatically update version in README file after docker image was re…
Browse files Browse the repository at this point in the history
…leased
  • Loading branch information
rmehner committed Feb 29, 2024
1 parent f4d9fb6 commit 5ebca30
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions .github/workflows/build-docker-image-of-release.yml
Expand Up @@ -9,6 +9,8 @@ concurrency: ${{ github.workflow }}-${{ github.ref }}
jobs:
build:
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- name: Checkout Repo
uses: actions/checkout@v4
Expand All @@ -29,3 +31,13 @@ jobs:
push: true
tags: |
ghcr.io/${{ github.repository }}:${{ github.ref_name }}
- name: Update version in README
run: |
sed 's|image: ghcr.io/rmehner/bits-to-dead-trees:v.*|image: ghcr.io/rmehner/bits-to-dead-trees:${{ github.ref_name }}|' README.md
- name: Commit changes
uses: stefanzweifel/git-auto-commit-action@v5
with:
commit_message: "🤖 Update version in README after release"
branch: main

0 comments on commit 5ebca30

Please sign in to comment.