-
Notifications
You must be signed in to change notification settings - Fork 29
49 lines (41 loc) · 1.36 KB
/
cosmic.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
38
39
40
41
42
43
44
45
46
47
48
49
name: Cosmic
on:
schedule:
- cron: '0 23 * * *'
workflow_dispatch:
jobs:
update:
name: Cosmic Update
runs-on: ubuntu-latest
permissions:
actions: write
contents: write
pull-requests: write
steps:
- uses: actions/checkout@v4
- uses: DeterminateSystems/nix-installer-action@v16
- uses: cachix/cachix-action@v15
with:
name: cosmic
- name: Configure git
run: |
git config user.name 'github-actions[bot]'
git config user.email 'github-actions[bot]@users.noreply.github.com'
- run: nix -vL run --show-trace .#update
- id: create-pr
uses: peter-evans/create-pull-request@v7
with:
branch: update_cosmic_action
delete-branch: true
committer: 'github-actions[bot] <github-actions[bot]@users.noreply.github.com>'
author: 'github-actions[bot] <github-actions[bot]@users.noreply.github.com>'
commit-message: 'pkgs: update cosmic'
title: 'pkgs: update cosmic'
labels: 'dependencies'
body: |
Automated bump of COSMIC packages
- uses: benc-uk/workflow-dispatch@v1
if: ${{ contains(fromJSON('["created", "updated"]'), steps.create-pr.outputs.pull-request-operation) }}
with:
workflow: ci.yml
ref: refs/heads/update_cosmic_action