Skip to content

Commit 81ba7b7

Browse files
chore(copier): update from template (#90)
Co-authored-by: liblaf-copier[bot] <271773752+liblaf-copier[bot]@users.noreply.github.com>
1 parent 9327a9e commit 81ba7b7

9 files changed

Lines changed: 67 additions & 60 deletions
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
# This file is @generated by <https://github.com/liblaf/copier-release>.
22
# DO NOT EDIT!
3-
_commit: v0.2.6
3+
_commit: v0.2.8
44
_src_path: gh:liblaf/copier-release

.config/copier/.copier-answers.shared.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# This file is @generated by <https://github.com/liblaf/copier-shared>.
22
# DO NOT EDIT!
3-
_commit: v0.2.8
3+
_commit: v0.2.9
44
_src_path: gh:liblaf/copier-share
55
author_email: 30631553+liblaf@users.noreply.github.com
66
author_name: liblaf

.github/workflows/release-draft.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,12 +18,12 @@ jobs:
1818
if: startsWith(github.head_ref, 'release-please/') && github.event.pull_request.merged
1919
runs-on: ubuntu-latest
2020
environment:
21-
name: Release Please
21+
name: release-please
2222
deployment: false
2323
steps:
2424
- id: auth
2525
name: Auth
26-
uses: liblaf/actions/auth@1f83732587ff97f1babbe9218fdc5436dda1a16f # v1
26+
uses: liblaf/actions/auth@12ffbdf8f37ab1ff07565b44b643fd8433621cd7 # v1
2727
with:
2828
app-id: ${{ vars.APP_ID }}
2929
private-key: ${{ secrets.PRIVATE_KEY }}

.github/workflows/release-pr.yaml

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -32,12 +32,12 @@ jobs:
3232
with:
3333
fetch-depth: 0
3434
- name: Install git-cliff
35-
uses: taiki-e/install-action@6ef672efc2b5aabc787a9e94baf4989aa02a97df # v2
35+
uses: taiki-e/install-action@7a562dfa955aa2e4d5b0fd6ebd57ff9715c07b0b # v2
3636
with:
3737
tool: git-cliff
3838
- id: version
3939
name: Next version
40-
uses: liblaf/actions/next-version@1f83732587ff97f1babbe9218fdc5436dda1a16f # v1
40+
uses: liblaf/actions/next-version@12ffbdf8f37ab1ff07565b44b643fd8433621cd7 # v1
4141
env:
4242
GIT_CLIFF_CONFIG_URL: ${{ env.GIT_CLIFF_CONFIG_URL }}
4343
GITHUB_TOKEN: ${{ github.token }}
@@ -53,12 +53,12 @@ jobs:
5353
if: needs.version.outputs.bumped == 'true'
5454
runs-on: ubuntu-latest
5555
environment:
56-
name: Release Please
56+
name: release-please
5757
deployment: false
5858
steps:
5959
- id: auth
6060
name: Auth
61-
uses: liblaf/actions/auth@1f83732587ff97f1babbe9218fdc5436dda1a16f # v1
61+
uses: liblaf/actions/auth@12ffbdf8f37ab1ff07565b44b643fd8433621cd7 # v1
6262
with:
6363
app-id: ${{ vars.APP_ID }}
6464
private-key: ${{ secrets.PRIVATE_KEY }}
@@ -67,7 +67,7 @@ jobs:
6767
with:
6868
fetch-depth: 0
6969
- name: Install git-cliff
70-
uses: taiki-e/install-action@6ef672efc2b5aabc787a9e94baf4989aa02a97df # v2
70+
uses: taiki-e/install-action@7a562dfa955aa2e4d5b0fd6ebd57ff9715c07b0b # v2
7171
with:
7272
tool: git-cliff
7373
- name: Generate changelog
@@ -105,4 +105,3 @@ jobs:
105105
automerge
106106
release-please
107107
assignees: ${{ github.repository_owner }}
108-
reviewers: ${{ github.repository_owner }}

.github/workflows/release-publish.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ jobs:
1515
contents: write
1616
runs-on: ubuntu-latest
1717
environment:
18-
name: Release Please
18+
name: release-please
1919
deployment: false
2020
steps:
2121
- id: auth
@@ -27,5 +27,5 @@ jobs:
2727
- name: Publish drafts
2828
uses: liblaf/actions/publish-drafts@1f83732587ff97f1babbe9218fdc5436dda1a16f # v1
2929
with:
30-
older-than: 6h
30+
older-than: 6hr
3131
token: ${{ steps.auth.outputs.token }}
Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
# This file is @generated by <https://github.com/liblaf/copier-shared>.
2+
# DO NOT EDIT!
3+
4+
name: Shared / Approve
5+
6+
on:
7+
schedule:
8+
- cron: "0 0 * * 0" # Runs at 00:00, only on Sunday
9+
workflow_dispatch:
10+
11+
env:
12+
FORCE_COLOR: 1
13+
14+
jobs:
15+
approve:
16+
name: Approve
17+
runs-on: ubuntu-latest
18+
environment:
19+
name: approve
20+
deployment: false
21+
steps:
22+
- id: auth
23+
name: Auth
24+
uses: liblaf/actions/auth@12ffbdf8f37ab1ff07565b44b643fd8433621cd7 # v1
25+
with:
26+
app-id: ${{ vars.APP_ID }}
27+
private-key: ${{ secrets.PRIVATE_KEY }}
28+
- name: Approve
29+
uses: liblaf/actions/approve@12ffbdf8f37ab1ff07565b44b643fd8433621cd7 # v1
30+
with:
31+
approve-token: ${{ steps.auth.outputs.token }}
32+
label: ${{ matrix.label }}
33+
strategy:
34+
matrix:
35+
label:
36+
- copier
37+
- release-please
38+
fail-fast: false

.github/workflows/shared-copier-update.yaml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ name: Shared / Copier Update
55

66
on:
77
schedule:
8-
- cron: "0 0 * * 0" # Runs at 00:00, only on Sunday
8+
- cron: "0 0 * * 6" # Runs at 00:00, only on Saturday
99
workflow_dispatch:
1010

1111
env:
@@ -20,12 +20,12 @@ jobs:
2020
pull-requests: write
2121
runs-on: ubuntu-latest
2222
environment:
23-
name: Copier
23+
name: copier
2424
deployment: false
2525
steps:
2626
- id: auth
2727
name: Auth
28-
uses: liblaf/actions/auth@1f83732587ff97f1babbe9218fdc5436dda1a16f # v1
28+
uses: liblaf/actions/auth@12ffbdf8f37ab1ff07565b44b643fd8433621cd7 # v1
2929
with:
3030
app-id: ${{ vars.APP_ID }}
3131
private-key: ${{ secrets.PRIVATE_KEY }}
@@ -59,4 +59,3 @@ jobs:
5959
automerge
6060
copier
6161
assignees: ${{ github.repository_owner }}
62-
reviewers: ${{ github.repository_owner }}

.github/workflows/shared-mega-linter.yaml

Lines changed: 15 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@ on:
1616

1717
env:
1818
FORCE_COLOR: 1
19-
GIT_COMMIT_MESSAGE: "chore(mega-linter): apply linters automatic fixes"
2019

2120
jobs:
2221
mega-linter:
@@ -27,7 +26,7 @@ jobs:
2726
pull-requests: write
2827
runs-on: ubuntu-latest
2928
environment:
30-
name: MegaLinter
29+
name: mega-linter
3130
deployment: false
3231
outputs:
3332
pull-request-url: ${{ steps.pr.outputs.pull-request-url }}
@@ -66,32 +65,37 @@ jobs:
6665
uses: peter-evans/create-pull-request@c0f553fe549906ede9cf27b5156039d195d2ece0 # v8
6766
with:
6867
token: ${{ steps.auth.outputs.token }}
69-
commit-message: ${{ env.GIT_COMMIT_MESSAGE }}
68+
commit-message: "chore(mega-linter): apply linters automatic fixes"
7069
branch: mega-linter/${{ github.head_ref || github.ref_name }}
7170
delete-branch: true
7271
sign-commits: true
73-
title: ${{ env.GIT_COMMIT_MESSAGE }}
72+
title: "chore(mega-linter): apply linters automatic fixes"
7473
body-path: ${{ runner.temp }}/megalinter-report.md
7574
labels: |-
7675
automerge
7776
mega-linter
7877
assignees: ${{ github.repository_owner }}
79-
reviewers: ${{ github.repository_owner }}
8078

81-
review:
82-
name: Review
79+
approve:
80+
name: Approve
8381
permissions:
8482
pull-requests: write
8583
needs:
8684
- mega-linter
8785
if: needs.mega-linter.outputs.pull-request-url
8886
runs-on: ubuntu-latest
8987
environment:
90-
name: Review
88+
name: approve
9189
deployment: false
9290
steps:
93-
- name: Review
94-
uses: liblaf/actions/review@1f83732587ff97f1babbe9218fdc5436dda1a16f # v1
91+
- id: auth
92+
name: Auth
93+
uses: liblaf/actions/auth@12ffbdf8f37ab1ff07565b44b643fd8433621cd7 # v1
94+
with:
95+
app-id: ${{ vars.APP_ID }}
96+
private-key: ${{ secrets.PRIVATE_KEY }}
97+
- name: Approve
98+
uses: liblaf/actions/approve@12ffbdf8f37ab1ff07565b44b643fd8433621cd7 # v1
9599
with:
100+
approve-token: ${{ steps.auth.outputs.token }}
96101
pull: ${{ needs.mega-linter.outputs.pull-request-url }}
97-
review-token: ${{ secrets.REVIEW_TOKEN }}

.github/workflows/shared-review.yaml

Lines changed: 0 additions & 33 deletions
This file was deleted.

0 commit comments

Comments
 (0)