-
Notifications
You must be signed in to change notification settings - Fork 0
41 lines (39 loc) · 1.34 KB
/
update-package.yaml
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
38
39
40
41
name: update-package
on:
workflow_dispatch:
inputs:
package:
description: 'package name'
required: true
default: ''
version:
description: 'package version'
required: true
default: ''
jobs:
update:
runs-on: ubuntu-latest
steps:
- name: checkout
uses: actions/checkout@v4
- run: git config --global user.name "Mark Pashmfouroush"
- run: git config --global user.email "[email protected]"
- name: install nix
uses: DeterminateSystems/nix-installer-action@v13
- name: set up nix cache
uses: DeterminateSystems/magic-nix-cache-action@v7
- name: update package
shell: bash
run: |
nix run github:Mic92/nix-update/1.4.0 -- \
--flake --commit --version=${{ github.event.inputs.version }} \
${{ github.event.inputs.package }}
- name: make PR
uses: peter-evans/create-pull-request@v6
with:
branch: "update-${{ github.event.inputs.package }}_${{ github.event.inputs.version }}"
delete-branch: true
committer: "Mark Pashmfouroush <[email protected]>"
author: "Mark Pashmfouroush <[email protected]>"
title: "update ${{ github.event.inputs.package }} to ${{ github.event.inputs.version }}"
token: ${{ github.token }}