From c6be942d1a4ad14cc9944369e2f210afc4ee013a Mon Sep 17 00:00:00 2001 From: Matthew Jackson <1085847+MattJackson@users.noreply.github.com> Date: Sun, 9 Aug 2026 07:20:44 -0700 Subject: [PATCH] Retire the README version bot It fired on `release: published` and committed to main, the branch the release points at its tag, so it could only ever leave main ahead of the tag. release.sh now makes the same edit inside the release commit. In this repo it was a no-op regardless: the pattern it rewrote does not appear in this README, so it has been running and changing nothing. --- .github/workflows/update-readme.yml | 36 ----------------------------- 1 file changed, 36 deletions(-) delete mode 100644 .github/workflows/update-readme.yml diff --git a/.github/workflows/update-readme.yml b/.github/workflows/update-readme.yml deleted file mode 100644 index 27ff724..0000000 --- a/.github/workflows/update-readme.yml +++ /dev/null @@ -1,36 +0,0 @@ -name: Update README version - -on: - release: - types: [published] - -permissions: - contents: write - -jobs: - update: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v5 - with: - ref: main - token: ${{ secrets.ORG_DISPATCH_TOKEN }} - - - name: Update version in README - run: | - VERSION="${{ github.event.release.tag_name }}" - FILE="README.md" - - # Update cargo dependency version (e.g. "0.2" -> "0.3") - MAJOR_MINOR="${VERSION#v}" - MAJOR_MINOR="${MAJOR_MINOR%.*}" - sed -i "s|libfreemkv = \"[0-9]*\.[0-9]*\"|libfreemkv = \"${MAJOR_MINOR}\"|" "$FILE" - - - name: Commit and push - run: | - VERSION="${{ github.event.release.tag_name }}" - git config user.name "github-actions[bot]" - git config user.email "github-actions[bot]@users.noreply.github.com" - git add README.md - git diff --cached --quiet || git commit -m "Update to libfreemkv ${VERSION}" - git push