mirror of
https://github.com/winapps-org/winapps.git
synced 2025-06-04 06:07:19 +02:00
feat(ci): allow running on PRs
This commit is contained in:
parent
73e71aff80
commit
c033d7c4a8
9
.github/workflows/update-nix.yaml
vendored
9
.github/workflows/update-nix.yaml
vendored
@ -5,12 +5,15 @@ permissions:
|
|||||||
pull-requests: write
|
pull-requests: write
|
||||||
|
|
||||||
on:
|
on:
|
||||||
workflow_dispatch:
|
pull_request:
|
||||||
|
branches: [main]
|
||||||
|
types: [labeled]
|
||||||
schedule:
|
schedule:
|
||||||
- cron: "0 10 * * 0" # https://crontab.guru/#0_10_*_*_0
|
- cron: "0 10 * * 0" # https://crontab.guru/#0_10_*_*_0
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
updateFlakePackages:
|
build:
|
||||||
|
if: "${{ github.event_name != 'pull_request' || contains(github.event.pull_request.labels.*.name, 'rebuild nix') }}"
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout repository
|
- name: Checkout repository
|
||||||
@ -25,7 +28,7 @@ jobs:
|
|||||||
uses: cachix/cachix-action@v15
|
uses: cachix/cachix-action@v15
|
||||||
with:
|
with:
|
||||||
name: winapps
|
name: winapps
|
||||||
authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}'
|
authToken: "${{ secrets.CACHIX_AUTH_TOKEN }}"
|
||||||
|
|
||||||
- name: Update flake packages
|
- name: Update flake packages
|
||||||
uses: winapps-org/nix-update-action@v1.3.0
|
uses: winapps-org/nix-update-action@v1.3.0
|
||||||
|
Loading…
x
Reference in New Issue
Block a user