mirror of
https://github.com/cucumber-sp/yandex-music-linux.git
synced 2024-12-23 22:22:59 +03:00
Fix update build for nix
Change-Id: I93b7657052ed8bcdccc852018f6c79307692ba8d
This commit is contained in:
parent
4d7f1cf6ff
commit
a0ef6c0ad9
10
.github/workflows/update-build-release.yml
vendored
10
.github/workflows/update-build-release.yml
vendored
@ -19,7 +19,7 @@ jobs:
|
|||||||
run: pacman -Syy --noconfirm
|
run: pacman -Syy --noconfirm
|
||||||
|
|
||||||
- name: Install deps
|
- name: Install deps
|
||||||
run: pacman -S --noconfirm git jq
|
run: pacman -S --noconfirm git jq nix
|
||||||
|
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
@ -41,14 +41,14 @@ jobs:
|
|||||||
outputs:
|
outputs:
|
||||||
new_version: ${{ steps.commit.outputs.commited }}
|
new_version: ${{ steps.commit.outputs.commited }}
|
||||||
commit_long_sha: ${{ steps.commit.outputs.commit_long_sha }}
|
commit_long_sha: ${{ steps.commit.outputs.commit_long_sha }}
|
||||||
|
|
||||||
build:
|
build:
|
||||||
if: ${{ (github.event_name == 'push') || (needs.update_packages.new_version) }}
|
if: ${{ (github.event_name == 'push') || (needs.update_packages.new_version) }}
|
||||||
needs: update_packages
|
needs: update_packages
|
||||||
uses: ./.github/workflows/build.yml
|
uses: ./.github/workflows/build.yml
|
||||||
with:
|
with:
|
||||||
ref: ${{ (needs.update_packages.commit_long_sha || '') }}
|
ref: ${{ (needs.update_packages.commit_long_sha || '') }}
|
||||||
|
|
||||||
upload-release:
|
upload-release:
|
||||||
needs: build
|
needs: build
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
@ -69,7 +69,7 @@ jobs:
|
|||||||
sudo apt-get update
|
sudo apt-get update
|
||||||
sudo apt-get install jq
|
sudo apt-get install jq
|
||||||
sh ./.github/workflows/retrieve_version.sh
|
sh ./.github/workflows/retrieve_version.sh
|
||||||
|
|
||||||
- name: Tag Repo
|
- name: Tag Repo
|
||||||
uses: richardsimko/update-tag@v1
|
uses: richardsimko/update-tag@v1
|
||||||
with:
|
with:
|
||||||
@ -86,4 +86,4 @@ jobs:
|
|||||||
name: ${{ env.release_name }}
|
name: ${{ env.release_name }}
|
||||||
replacesArtifacts: true
|
replacesArtifacts: true
|
||||||
tag: ${{ env.tag_name }}
|
tag: ${{ env.tag_name }}
|
||||||
|
|
||||||
|
@ -73,7 +73,7 @@ update_pkbuild() {
|
|||||||
update_flake() {
|
update_flake() {
|
||||||
sed -i 's#\(ymExe\.url\s*=\s*\).*;#\1'"$exe_link"';#' ./flake.nix
|
sed -i 's#\(ymExe\.url\s*=\s*\).*;#\1'"$exe_link"';#' ./flake.nix
|
||||||
if check_dep nix; then
|
if check_dep nix; then
|
||||||
nix flake lock --update-input ymExe
|
nix --extra-experimental-features 'nix-command flakes' flake update
|
||||||
else
|
else
|
||||||
echo "flake.nix was updated, but nix not installed to update flake.lock"
|
echo "flake.nix was updated, but nix not installed to update flake.lock"
|
||||||
fi
|
fi
|
||||||
|
Loading…
Reference in New Issue
Block a user