Skip to content

Commit

Permalink
Nightly (#6)
Browse files Browse the repository at this point in the history
* feat: add build test (#3)

* Testing (#5)

* feat: add build test

* feat: update action

* feat: setup hyprlock
  • Loading branch information
Pikatsuto authored Oct 24, 2024
1 parent f2c49d2 commit 486e814
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 59 deletions.
28 changes: 0 additions & 28 deletions .github/workflows/auto_nigthly.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,31 +58,3 @@ jobs:
files: |
./${{ env.FILE_NAME }}
./package.nix
- name: Clone RevoluNixPKGS
uses: actions/checkout@master
with:
ref: nightly
repository: RevoluNix/revolunixpkgs
token: ${{ secrets.RevoluNixPKGS_TOKEN }}

- name: Update RevoluNixPKGS
id: update_pkgs
run: |
git config --global user.email "${{ github.event.pusher.email }}"
git config --global user.name "${{ github.event.pusher.name }}"
URL="https://github.com/${{ github.repository }}/releases/download/${{ env.TAG_NAME }}/package.nix"
rm -rf ./pkgs/${{ env.PKG_NAME }}
mkdir -p ./pkgs/${{ env.PKG_NAME }}
wget -O ./pkgs/${{ env.PKG_NAME }}/package.nix $URL
git add .
git commit -m "feat: Update/Upload ${{ env.PKG_NAME }} package"
- name: Push RevoluNixPKGS changes
uses: ad-m/github-push-action@master
with:
github_token: ${{ secrets.RevoluNixPKGS_TOKEN }}
repository: RevoluNix/revolunixpkgs
branch: nightly
2 changes: 2 additions & 0 deletions .github/workflows/auto_release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ jobs:
- name: Clone RevoluNixPKGS
uses: actions/checkout@master
with:
ref: testing
repository: RevoluNix/revolunixpkgs
token: ${{ secrets.RevoluNixPKGS_TOKEN }}

Expand All @@ -82,3 +83,4 @@ jobs:
with:
github_token: ${{ secrets.RevoluNixPKGS_TOKEN }}
repository: RevoluNix/revolunixpkgs
branch: testing
28 changes: 0 additions & 28 deletions .github/workflows/auto_testing.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,31 +58,3 @@ jobs:
files: |
./${{ env.FILE_NAME }}
./package.nix
- name: Clone RevoluNixPKGS
uses: actions/checkout@master
with:
ref: testing
repository: RevoluNix/revolunixpkgs
token: ${{ secrets.RevoluNixPKGS_TOKEN }}

- name: Update RevoluNixPKGS
id: update_pkgs
run: |
git config --global user.email "${{ github.event.pusher.email }}"
git config --global user.name "${{ github.event.pusher.name }}"
URL="https://github.com/${{ github.repository }}/releases/download/${{ env.TAG_NAME }}/package.nix"
rm -rf ./pkgs/${{ env.PKG_NAME }}
mkdir -p ./pkgs/${{ env.PKG_NAME }}
wget -O ./pkgs/${{ env.PKG_NAME }}/package.nix $URL
git add .
git commit -m "feat: Update/Upload ${{ env.PKG_NAME }} package"
- name: Push RevoluNixPKGS changes
uses: ad-m/github-push-action@master
with:
github_token: ${{ secrets.RevoluNixPKGS_TOKEN }}
repository: RevoluNix/revolunixpkgs
branch: testing
4 changes: 2 additions & 2 deletions package.nix
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
lib,
makeWrapper,
rofi-wayland,
swaylock-effects,
hyprlock,
}:
############
# Packages #
Expand Down Expand Up @@ -50,7 +50,7 @@ stdenv.mkDerivation (finalAttrs: {
# ----------------------------------------------------------------- #
postFixup = ''
wrapProgram $out/bin/${finalAttrs.pname} \
--prefix PATH : ${lib.makeBinPath [ rofi-wayland swaylock-effects ]}
--prefix PATH : ${lib.makeBinPath [ rofi-wayland hyprlock ]}
'';
# ----------------------------------------------------------------- #
meta = {
Expand Down
2 changes: 1 addition & 1 deletion src/rofi-power
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ confirm_run () {
# Execute Command
run_cmd() {
if [[ "$1" == '--opt1' ]]; then
lockscreen
hyprlock
elif [[ "$1" == '--opt2' ]]; then
confirm_run 'kill -9 -1'
elif [[ "$1" == '--opt3' ]]; then
Expand Down

0 comments on commit 486e814

Please sign in to comment.