-
Notifications
You must be signed in to change notification settings - Fork 0
37 lines (31 loc) · 1.02 KB
/
update-packages.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
name: Build and update Prisma packages to the latest
on:
schedule:
# Run every hour
- cron: '0 * * * *'
workflow_dispatch:
jobs:
update:
name: Build and publish packages
runs-on: ubuntu-latest
steps:
- uses: actions/[email protected]
- uses: cachix/install-nix-action@v14
with:
install_url: https://releases.nixos.org/nix/nix-2.11.1/install
extra_nix_config: |
experimental-features = nix-command flakes
access-tokens = github.com=${{ secrets.GITHUB_TOKEN }}
- name: Update packages
run: |
nix run .#updatePackages
- name: Build language server
run: |
nix build .#"@prisma/language-server"
nix build .#"@prisma/language-server-dev"
- uses: stefanzweifel/git-auto-commit-action@v4
with:
commit_message: Packages update
commit_user_name: prisma-bot
commit_user_email: [email protected]
commit_author: prisma-bot <[email protected]>