Skip to content

Commit

Permalink
ci(update_readme): fix update_readme workflow (#63)
Browse files Browse the repository at this point in the history
* ci(update_readme): fix `update_readme` workflow

---------

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
  • Loading branch information
alexpasmantier and github-actions[bot] authored Nov 23, 2024
1 parent edd9df4 commit 93f6693
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 10 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/changelog.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@ name: changelog

on:
pull_request:
push:
branches:
- main

jobs:
changelog:
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/update_readme.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
fetch-depth: 0
- name: Update README.md
run: |
sed -i "/television/s/[0-9]\+\.[0-9]\+\.[0-9]\+/${{ github.event.ref }}/g" README.md
sed -i "/television/s/[0-9]\+\.[0-9]\+\.[0-9]\+/${{ github.ref_name }}/g" README.md
- name: Extract branch name
shell: bash
run: echo "branch=${GITHUB_HEAD_REF:-${GITHUB_REF#refs/heads/}}" >> $GITHUB_OUTPUT
Expand All @@ -29,5 +29,5 @@ jobs:
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 commit -m "docs(version): update README.md with new version"
git push https://${{ secrets.GITHUB_TOKEN }}@github.com/${GITHUB_REPOSITORY}.git ${{ steps.extract_branch.outputs.branch }}
9 changes: 3 additions & 6 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ All notable changes to this project will be documented in this file.
### 🐛 Bug Fixes

- Quote file names that contain spaces when printing them to stdout (#51)
- *(entry)* Preserve raw input
- *(entry)* Always preserve raw input + match ranges conversions (#62)

### 🚜 Refactor

Expand All @@ -21,15 +21,12 @@ All notable changes to this project will be documented in this file.

- *(git)* Enforce conventional commits on git push with a hook (#61)

### 🧪 Testing

- Add tests for replace_non_printable and cleanup commented out code

### ⚙️ Miscellaneous Tasks

- Add readme version update to github actions (#55)
- *(version)* Bump workspace crates and television
- *(update_readme)* Fix `update_readme` workflow
- *(changelog)* Update changelog (auto)
- *(update_readme)* Fix `update_readme` workflow

### Build

Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,8 @@ brew install alexpasmantier/television/television

#### Debian-based (Debian, Ubuntu, Pop!_OS, Linux Mint, etc.)
```bash
curl -LO https://github.com/alexpasmantier/television/releases/download/0.5.0/television_0.5.0-1_amd64.deb
sudo dpkg -i television_0.5.0-1_amd64.deb
curl -LO https://github.com/alexpasmantier/television/releases/download/0.5.2/television_0.5.2-1_amd64.deb
sudo dpkg -i television_0.5.2-1_amd64.deb
```
#### Arch Linux
```bash
Expand Down

0 comments on commit 93f6693

Please sign in to comment.