fix(ci): don't create PRs on other people's repos

This commit is contained in:
Oskar Manhart 2025-02-02 11:40:25 +01:00 committed by GitHub
parent 0b6eed0a04
commit e164a6b5ef
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -13,7 +13,7 @@ on:
jobs: jobs:
build: build:
if: "${{ github.event_name != 'pull_request' || contains(github.event.pull_request.labels.*.name, 'rebuild nix') }}" 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
@ -31,9 +31,10 @@ jobs:
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.4.0
with: with:
extra-args: --version=branch extra-args: --version=branch
skip-pr: "${{ github.event_name == 'pull_request' }}"
- name: Build packages - name: Build packages
run: nix build .#winapps .#winapps-launcher run: nix build .#winapps .#winapps-launcher