-
Notifications
You must be signed in to change notification settings - Fork 496
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
pompurin404
committed
Aug 7, 2024
1 parent
a5e72ff
commit 5c60310
Showing
3 changed files
with
25 additions
and
29 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -154,7 +154,7 @@ jobs: | |
files: dist/*.dmg | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
aur-updater: | ||
aur-release-updater: | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
|
@@ -165,6 +165,8 @@ jobs: | |
needs: linux | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
- name: Update Version | ||
run: | | ||
sed -i "s/pkgver=.*/pkgver=$(echo ${{ github.ref }} | tr -d 'refs/tags/v')/" aur/mihomo-party-bin/PKGBUILD | ||
|
@@ -192,3 +194,24 @@ jobs: | |
commit_message: Update AUR package | ||
ssh_keyscan_types: rsa,ed25519 | ||
allow_empty_commits: false | ||
|
||
aur-git-updater: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 | ||
- name: update version | ||
run: | | ||
sed -i "s/pkgver=.*/pkgver=$(git describe --long 2>/dev/null | sed 's/\([^-]*-g\)/r\1/;s/-/./g' | tr -d 'v')/" aur/mihomo-party-git/PKGBUILD | ||
- name: Publish AUR package | ||
uses: KSXGitHub/[email protected] | ||
with: | ||
pkgname: mihomo-party-git | ||
pkgbuild: aur/mihomo-party-git/PKGBUILD | ||
commit_username: pompurin404 | ||
commit_email: [email protected] | ||
ssh_private_key: ${{ secrets.PRIVATE_KEY }} | ||
commit_message: Update AUR package | ||
ssh_keyscan_types: rsa,ed25519 | ||
allow_empty_commits: false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters