feat(ci): allow running on PRs

This commit is contained in:
Oskar Manhart 2025-02-02 11:26:21 +01:00 committed by GitHub
parent 73e71aff80
commit c033d7c4a8
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -5,12 +5,15 @@ permissions:
pull-requests: write
on:
workflow_dispatch:
pull_request:
branches: [main]
types: [labeled]
schedule:
- cron: "0 10 * * 0" # https://crontab.guru/#0_10_*_*_0
jobs:
updateFlakePackages:
build:
if: "${{ github.event_name != 'pull_request' || contains(github.event.pull_request.labels.*.name, 'rebuild nix') }}"
runs-on: ubuntu-latest
steps:
- name: Checkout repository
@ -25,7 +28,7 @@ jobs:
uses: cachix/cachix-action@v15
with:
name: winapps
authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}'
authToken: "${{ secrets.CACHIX_AUTH_TOKEN }}"
- name: Update flake packages
uses: winapps-org/nix-update-action@v1.3.0