mirror of
https://github.com/cucumber-sp/yandex-music-linux.git
synced 2025-09-28 01:29:03 +03:00
Switch generate_packages to Python
dep fix
This commit is contained in:
24
.github/workflows/update-build-release.yml
vendored
24
.github/workflows/update-build-release.yml
vendored
@@ -15,19 +15,23 @@ jobs:
|
||||
container:
|
||||
image: archlinux:latest
|
||||
steps:
|
||||
- name: Pacman database update
|
||||
run: pacman -Syy --noconfirm
|
||||
|
||||
- name: Install deps
|
||||
run: pacman -S --noconfirm git jq nix
|
||||
- name: Packages install
|
||||
run: pacman -Syy --noconfirm && pacman -S --noconfirm git jq nix python python-requests
|
||||
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Check and update current packages
|
||||
run: sh .github/workflows/update_packages.sh
|
||||
- name: Fix git access
|
||||
run:
|
||||
git config --global --add safe.directory "*"
|
||||
|
||||
- name: Retrieve version
|
||||
- name: Update version file
|
||||
run: python utility/update_version.py
|
||||
|
||||
- name: Update package files
|
||||
run: python utility/generate_packages.py
|
||||
|
||||
- name: Retrieve version to make commit
|
||||
run: sh .github/workflows/retrieve_version.sh
|
||||
|
||||
- name: Commit and push changes
|
||||
@@ -38,7 +42,8 @@ jobs:
|
||||
add: "."
|
||||
author_name: "GitHub Actions"
|
||||
author_email: "loraner123@gmail.com"
|
||||
- name: Publish AUR package
|
||||
|
||||
- name: Publish package changes to AUR
|
||||
uses: KSXGitHub/github-actions-deploy-aur@v2.7.0
|
||||
with:
|
||||
pkgname: "yandex-music"
|
||||
@@ -50,6 +55,7 @@ jobs:
|
||||
ssh_private_key: "${{ secrets.AUR_SSH_PRIVATE_KEY }}"
|
||||
commit_message: "${{ github.event.commits[0].message }}"
|
||||
ssh_keyscan_types: "rsa,dsa,ecdsa,ed25519"
|
||||
|
||||
outputs:
|
||||
new_version: ${{ steps.commit.outputs.commited }}
|
||||
commit_long_sha: ${{ steps.commit.outputs.commit_long_sha }}
|
||||
|
25
.github/workflows/update_packages.sh
vendored
25
.github/workflows/update_packages.sh
vendored
@@ -1,25 +0,0 @@
|
||||
#!/bin/bash
|
||||
|
||||
set -e
|
||||
|
||||
if [ -f /etc/os-release ]; then
|
||||
. /etc/os-release
|
||||
OS=$NAME
|
||||
elif [ -f /etc/lsb-release ]; then
|
||||
. /etc/lsb-release
|
||||
OS=$DISTRIB_ID
|
||||
else
|
||||
OS=$(uname -s)
|
||||
fi
|
||||
|
||||
case $OS in
|
||||
"Arch Linux")
|
||||
echo "Arch Linux"
|
||||
pacman -S --noconfirm git sudo base-devel jq nix
|
||||
git config --global --add safe.directory "*"
|
||||
sh ./utility/generate_packages.sh
|
||||
;;
|
||||
*)
|
||||
echo "Operating system is not recognized."
|
||||
;;
|
||||
esac
|
Reference in New Issue
Block a user