mirror of
https://github.com/javalsai/lidm.git
synced 2025-07-03 14:25:03 +02:00
ci: add AUR pkg updates PRs on release
This commit is contained in:
parent
9f32ce274b
commit
c4a996c1e8
34
.github/workflows/make-release.yml
vendored
34
.github/workflows/make-release.yml
vendored
@ -33,7 +33,37 @@ jobs:
|
|||||||
tag: v${{ inputs.version }}
|
tag: v${{ inputs.version }}
|
||||||
commit: ${{ github.sha }}
|
commit: ${{ github.sha }}
|
||||||
artifacts: builds/lidm-*
|
artifacts: builds/lidm-*
|
||||||
artifactsErrorsFailBuild: true
|
artifactErrorsFailBuild: true
|
||||||
body: Release notes not generated yet.
|
body: Release notes not generated yet.
|
||||||
|
|
||||||
# TODO: get checksums and commit new AUR pkgbuilds
|
aur-update:
|
||||||
|
name: Update AUR pkgs
|
||||||
|
runs-on: ubuntu-24.04
|
||||||
|
container: archlinux:latest
|
||||||
|
permissions: write-all
|
||||||
|
needs: release
|
||||||
|
steps:
|
||||||
|
- run: pacman -Sy --noconfirm git github-cli base-devel pacman-contrib
|
||||||
|
|
||||||
|
- uses: actions/checkout@v4
|
||||||
|
|
||||||
|
- run: |
|
||||||
|
cd "assets/pkg/aur"
|
||||||
|
chown nobody:nobody . -R
|
||||||
|
su - -s /bin/bash nobody -c "$PWD/update-pkgs.sh ${{ inputs.version }}"
|
||||||
|
su - -s /bin/bash nobody -c "$PWD/test-makepkg.sh" # This will also update -git pkgver
|
||||||
|
chown $UID:$(id -g) . -R
|
||||||
|
|
||||||
|
- run: |
|
||||||
|
BRANCH=actions/update-aur-${{ inputs.version }}
|
||||||
|
git config --global --add safe.directory $GITHUB_WORKSPACE
|
||||||
|
git config user.name "GitHub Actions"
|
||||||
|
git config user.email "actions@github.com"
|
||||||
|
git checkout -b $BRANCH
|
||||||
|
git commit -am "Update AUR pkgs to v${{ inputs.version }}"
|
||||||
|
git push -u origin $BRANCH
|
||||||
|
gh pr create --head $BRANCH \
|
||||||
|
--title "[AUR update]: Bump to ${{ inputs.version }}" \
|
||||||
|
--body "*This PR was created automatically*"
|
||||||
|
env:
|
||||||
|
GH_TOKEN: ${{ github.token }}
|
||||||
|
@ -9,7 +9,7 @@ pkgbase = lidm-bin
|
|||||||
depends = pam
|
depends = pam
|
||||||
provides = lidm
|
provides = lidm
|
||||||
conflicts = lidm
|
conflicts = lidm
|
||||||
source = lidm::https://github.com/javalsai/lidm/releases/download/v0.1.0/lidm-x86_64
|
source = lidm::https://github.com/javalsai/lidm/releases/download/v0.1.0/lidm-amd64
|
||||||
source = default-theme.ini::https://raw.githubusercontent.com/javalsai/lidm/v0.1.0/themes/default.ini
|
source = default-theme.ini::https://raw.githubusercontent.com/javalsai/lidm/v0.1.0/themes/default.ini
|
||||||
source = lidm.1::https://raw.githubusercontent.com/javalsai/lidm/v0.1.0/assets/man/lidm.1
|
source = lidm.1::https://raw.githubusercontent.com/javalsai/lidm/v0.1.0/assets/man/lidm.1
|
||||||
source = lidm-config.5::https://raw.githubusercontent.com/javalsai/lidm/v0.1.0/assets/man/lidm-config.5
|
source = lidm-config.5::https://raw.githubusercontent.com/javalsai/lidm/v0.1.0/assets/man/lidm-config.5
|
||||||
|
@ -12,7 +12,7 @@ license=('GPL')
|
|||||||
provides=('lidm')
|
provides=('lidm')
|
||||||
conflicts=('lidm')
|
conflicts=('lidm')
|
||||||
source=(
|
source=(
|
||||||
"lidm::$url/releases/download/v$pkgver/lidm-$arch"
|
"lidm::$url/releases/download/v$pkgver/lidm-amd64"
|
||||||
"default-theme.ini::https://raw.githubusercontent.com/javalsai/lidm/v$pkgver/themes/default.ini"
|
"default-theme.ini::https://raw.githubusercontent.com/javalsai/lidm/v$pkgver/themes/default.ini"
|
||||||
"lidm.1::https://raw.githubusercontent.com/javalsai/lidm/v$pkgver/assets/man/lidm.1"
|
"lidm.1::https://raw.githubusercontent.com/javalsai/lidm/v$pkgver/assets/man/lidm.1"
|
||||||
"lidm-config.5::https://raw.githubusercontent.com/javalsai/lidm/v$pkgver/assets/man/lidm-config.5"
|
"lidm-config.5::https://raw.githubusercontent.com/javalsai/lidm/v$pkgver/assets/man/lidm-config.5"
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
pkgbase = lidm-git
|
pkgbase = lidm-git
|
||||||
pkgdesc = A fully colorful customizable TUI display manager made in C. (last git commit)
|
pkgdesc = A fully colorful customizable TUI display manager made in C. (last git commit)
|
||||||
pkgver = 0.0.2.r37.gf1f9d6b
|
pkgver = 0.1.0.r0.g8071694
|
||||||
pkgrel = 1
|
pkgrel = 1
|
||||||
url = https://github.com/javalsai/lidm
|
url = https://github.com/javalsai/lidm
|
||||||
arch = any
|
arch = any
|
||||||
|
Loading…
x
Reference in New Issue
Block a user