CI #1053
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: "CI" | |
on: | |
push: | |
branches: | |
- main | |
- trying | |
- staging | |
schedule: | |
- cron: "0 0 * * SAT" # every sunday | |
jobs: | |
nix-build: | |
runs-on: ubuntu-latest | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- uses: DeterminateSystems/nix-installer-action@main | |
- uses: DeterminateSystems/magic-nix-cache-action@main | |
- name: Install nixci | |
shell: bash | |
run: nix profile install nixpkgs#nixci | |
# CI workflows | |
- name: Run Nix Flake Show | |
run: nix flake show | |
- name: Run nvfetcher-github | |
if: ${{ github.event_name == 'schedule' }} | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
run: | | |
nix develop ./nix/std -c nvfetcher-all | |
- name: Build packages with nixci | |
run: nixci build | |
- name: Create Pull Request | |
if: ${{ env.COMMIT_MSG != null }} | |
uses: peter-evans/create-pull-request@v6 | |
with: | |
commit_message: ${{ env.COMMIT_MSG }} | |
title: Update Packages | |
delete-branch: true | |
branch: update-packages |