Skip to content

Commit

Permalink
ci/update-flake: make hyprgrass ref adjustable
Browse files Browse the repository at this point in the history
  • Loading branch information
horriblename committed Dec 9, 2024
1 parent 03955a4 commit 35fcbe6
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
9 changes: 8 additions & 1 deletion .github/workflows/pin-latest-hyprland.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,11 @@ on:
workflow_dispatch:
schedule:
- cron: "0 0 * * 0" # weekly on Sunday 00:00
inputs:
hyprgrass_pin_target:
description: "Ref of the hyprgrass commit to pin"
required: false
default: "main"
jobs:
tests:
runs-on: ubuntu-latest
Expand All @@ -19,7 +24,9 @@ jobs:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
set -eu
./scripts/ci/pin-latest-hyprland main
git fetch --depth=1 --tags origin '${{inputs.hyprgrass_pin_target}}'
./scripts/ci/pin-latest-hyprland '${{inputs.hyprgrass_pin_target}}'
if git diff --quiet hyprpm.toml; then # no changes
exit 0
fi
Expand Down
2 changes: 1 addition & 1 deletion scripts/ci/test-pin.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/bin/sh

set -eu
set -eux

echoerr () {
echo $@ >&2
Expand Down

0 comments on commit 35fcbe6

Please sign in to comment.