Skip to content

Commit a173d1b

Browse files
committed
update workflows
1 parent d569135 commit a173d1b

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

.github/workflows/update-aur.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,13 +51,17 @@ jobs:
5151
sed -i 's/pkgver=.*/pkgver=${{ steps.get_version.outputs.version }}/' PKGBUILD
5252
sed -i 's|source=.*|source=("$pkgname-$pkgver.tar.gz::https://github.com/Matars/gitfetch/archive/refs/tags/v$pkgver.tar.gz")|' PKGBUILD
5353
sed -i "s/sha256sums=.*/sha256sums=('${{ steps.sha256.outputs.sha256 }}')/" PKGBUILD
54+
# Update dependencies
55+
sed -i 's/depends=.*/depends=("python-requests" "python-readchar")/' PKGBUILD
5456
5557
- name: Update .SRCINFO
5658
run: |
5759
cd aur-repo
5860
sed -i 's/pkgver = .*/pkgver = ${{ steps.get_version.outputs.version }}/' .SRCINFO
5961
sed -i 's|source = .*|source = gitfetch-python-${{ steps.get_version.outputs.version }}.tar.gz::https://github.com/Matars/gitfetch/archive/refs/tags/v${{ steps.get_version.outputs.version }}.tar.gz|' .SRCINFO
6062
sed -i "s/sha256sums = .*/sha256sums = ${{ steps.sha256.outputs.sha256 }}/" .SRCINFO
63+
# Update dependencies in .SRCINFO
64+
sed -i 's/depends = python-requests/depends = python-requests\n\tdepends = python-readchar/' .SRCINFO
6165
6266
- name: Commit and push
6367
run: |

.github/workflows/update-homebrew.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,8 @@ jobs:
4343
sed -i 's|url "https://github.com/Matars/gitfetch/archive/refs/tags/v.*"|url "https://github.com/Matars/gitfetch/archive/refs/tags/v${{ steps.get_version.outputs.version }}.tar.gz"|' homebrew-tap/Formula/gitfetch.rb
4444
sed -i 's|version ".*"|version "${{ steps.get_version.outputs.version }}"|' homebrew-tap/Formula/gitfetch.rb
4545
sed -i 's|sha256 ".*"|sha256 "${{ steps.sha256.outputs.sha256 }}"|' homebrew-tap/Formula/gitfetch.rb
46+
# Update dependencies
47+
sed -i 's|depends_on "requests"|depends_on "requests"\n depends_on "readchar"|' homebrew-tap/Formula/gitfetch.rb
4648
4749
- name: Commit and push
4850
run: |

0 commit comments

Comments
 (0)