From 0f6aad952f2793bb636c148ea472440daba166a2 Mon Sep 17 00:00:00 2001 From: Alexandre Pasmantier <47638216+alexpasmantier@users.noreply.github.com> Date: Fri, 22 Nov 2024 13:24:00 +0100 Subject: [PATCH] chore: add readme version update to github actions (#55) * chore: add readme version update to github actions * Update changelog --------- Co-authored-by: github-actions[bot] --- .github/workflows/update_readme.yml | 33 +++++++++++++++++++++++++++++ CHANGELOG.md | 14 +++++++++++- 2 files changed, 46 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/update_readme.yml diff --git a/.github/workflows/update_readme.yml b/.github/workflows/update_readme.yml new file mode 100644 index 0000000..a979af8 --- /dev/null +++ b/.github/workflows/update_readme.yml @@ -0,0 +1,33 @@ +name: update_readme +permissions: + contents: write +on: + push: + tags: + - '[v]?[0-9]+.[0-9]+.[0-9]+' + workflow_dispatch: +jobs: + update-readme-version: + name: Update README.md with new version + runs-on: ubuntu-latest + steps: + - name: Checkout code + uses: actions/checkout@v4 + with: + fetch-depth: 0 + - name: Update README.md + run: | + sed -i "/television/s/[0-9]\+\.[0-9]\+\.[0-9]\+/${{ github.event.ref }}/g" README.md + - name: Extract branch name + shell: bash + run: echo "branch=${GITHUB_HEAD_REF:-${GITHUB_REF#refs/heads/}}" >> $GITHUB_OUTPUT + id: extract_branch + - name: Commit changes + run: | + git checkout ${{ steps.extract_branch.outputs.branch }} + git config user.name 'github-actions[bot]' + git config user.email 'github-actions[bot]@users.noreply.github.com' + set +e + git add README.md + git commit -m "Update README.md with new version" + git push https://${{ secrets.GITHUB_TOKEN }}@github.com/${GITHUB_REPOSITORY}.git ${{ steps.extract_branch.outputs.branch }} diff --git a/CHANGELOG.md b/CHANGELOG.md index c8622a3..d9f0b10 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,16 @@ All notable changes to this project will be documented in this file. ## [unreleased] +### 🐛 Bug Fixes + +- Quote file names that contain spaces when printing them to stdout (#51) + +### ⚙️ Miscellaneous Tasks + +- Add readme version update to github actions + +## [0.5.1] - 2024-11-20 + ### 📚 Documentation - Add instructions for installing on Arch Linux (#43) @@ -14,7 +24,9 @@ All notable changes to this project will be documented in this file. - Add CHANGELOG.md (#44) - *(config)* Default configuration now uses 100% of terminal screen space (#47) -- *(changelog)* Udpate changelog and add corresponding makefile command +- *(changelog)* Udpate changelog and add corresponding makefile command (#53) +- *(actions)* Remove changelog update from the main branch +- Bump version to 0.5.1 ## [0.5.0] - 2024-11-18