mirror of
https://github.com/hyprwm/Hyprland
synced 2024-11-26 05:05:59 +01:00
Nix CI: add GH token (#1557)
This commit is contained in:
parent
1992f27a26
commit
ab6a092dbc
3 changed files with 2 additions and 26 deletions
1
.github/workflows/nix-build.yaml
vendored
1
.github/workflows/nix-build.yaml
vendored
|
@ -23,6 +23,7 @@ jobs:
|
||||||
install_url: https://nixos.org/nix/install
|
install_url: https://nixos.org/nix/install
|
||||||
extra_nix_config: |
|
extra_nix_config: |
|
||||||
auto-optimise-store = true
|
auto-optimise-store = true
|
||||||
|
access-tokens = github.com=${{ secrets.GITHUB_TOKEN }}
|
||||||
experimental-features = nix-command flakes
|
experimental-features = nix-command flakes
|
||||||
- uses: cachix/cachix-action@v12
|
- uses: cachix/cachix-action@v12
|
||||||
with:
|
with:
|
||||||
|
|
26
.github/workflows/nix-meson-ver-update.yaml
vendored
26
.github/workflows/nix-meson-ver-update.yaml
vendored
|
@ -1,26 +0,0 @@
|
||||||
name: "Nix & Meson: update version"
|
|
||||||
|
|
||||||
on: [workflow_dispatch]
|
|
||||||
|
|
||||||
jobs:
|
|
||||||
update:
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
steps:
|
|
||||||
- name: Clone repository
|
|
||||||
uses: actions/checkout@v3
|
|
||||||
- name: Update flake and meson version
|
|
||||||
run: |
|
|
||||||
REGEX="([0-9]+(\.[0-9a-zA-Z]+)+)"
|
|
||||||
|
|
||||||
CRT_REV=$(git show-ref --tags --head --abbrev | head -n 1 | head -c 7)
|
|
||||||
TAG_REV=$(git show-ref --tags --abbrev | tail -n 1 | head -c 7)
|
|
||||||
CRT_VER=$(sed -nEe "/$REGEX/{p;q;}" meson.build | awk -F\' '{print $2}')
|
|
||||||
VERSION=$(git show-ref --tags --abbrev | tail -n 1 | tail -c +20)
|
|
||||||
|
|
||||||
if [[ $TAG_REV = $CRT_REV ]] || [[ $CRT_VER != $VERSION ]]; then
|
|
||||||
sed -Ei "s/$REGEX/$VERSION/g" meson.build
|
|
||||||
sed -Ei "s/$REGEX/$VERSION/g" flake.nix
|
|
||||||
fi
|
|
||||||
- uses: stefanzweifel/git-auto-commit-action@v4
|
|
||||||
with:
|
|
||||||
commit_message: "[gha] bump flake and meson version"
|
|
1
.github/workflows/nix-update.yaml
vendored
1
.github/workflows/nix-update.yaml
vendored
|
@ -14,6 +14,7 @@ jobs:
|
||||||
install_url: https://nixos.org/nix/install
|
install_url: https://nixos.org/nix/install
|
||||||
extra_nix_config: |
|
extra_nix_config: |
|
||||||
auto-optimise-store = true
|
auto-optimise-store = true
|
||||||
|
access-tokens = github.com=${{ secrets.GITHUB_TOKEN }}
|
||||||
experimental-features = nix-command flakes
|
experimental-features = nix-command flakes
|
||||||
- name: Update lockfile
|
- name: Update lockfile
|
||||||
run: nix/update-inputs.sh
|
run: nix/update-inputs.sh
|
||||||
|
|
Loading…
Reference in a new issue