-
Notifications
You must be signed in to change notification settings - Fork 0
56 lines (52 loc) · 1.76 KB
/
shared-copier-update.yaml
File metadata and controls
56 lines (52 loc) · 1.76 KB
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
50
51
52
53
54
55
56
# This file is @generated by <https://github.com/liblaf/copier-shared>.
# DO NOT EDIT!
name: Shared / Copier Update
on:
schedule:
- cron: "0 0 * * 6" # Runs at 00:00, only on Saturday
workflow_dispatch:
env:
FORCE_COLOR: 1
jobs:
copier-update:
name: Copier Update
permissions:
contents: write
issues: write
pull-requests: write
runs-on: ubuntu-latest
environment:
name: copier
deployment: false
steps:
- id: auth
name: Auth
uses: liblaf/actions/auth@512d1652c6a71a8f141d1901f50994afaddc925e # v3
with:
client-id: ${{ vars.APP_CLIENT_ID }}
private-key: ${{ secrets.APP_PRIVATE_KEY }}
- name: Checkout
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
- name: Install mise
uses: jdx/mise-action@1648a7812b9aeae629881980618f079932869151 # v4
- name: Install Copier
run: pipx install --pip-args cookiecutter copier
- name: Copier update
run: mise run copier-update --skip-answered --trust --force
- name: Create PR
uses: peter-evans/create-pull-request@5f6978faf089d4d20b00c7766989d076bb2fc7f1 # v8
with:
token: ${{ steps.auth.outputs.token }}
commit-message: "chore(copier): update from template"
branch: copier-update/${{ github.ref_name }}
delete-branch: true
sign-commits: true
title: "chore(copier): update from template"
body: >-
Automated changes by [${{ github.workflow }}](${{ github.server_url
}}/${{ github.repository }}/actions/runs/${{ github.run_id }})
Workflow
labels: |-
automerge
copier
assignees: ${{ github.repository_owner }}