Skip to content

Commit 9997146

Browse files
authored
Merge pull request #156 from lcobucci/automate-more-tasks
Automate more tasks
2 parents 6f3ae0d + b04a960 commit 9997146

File tree

5 files changed

+454
-22
lines changed

5 files changed

+454
-22
lines changed

.github/dependabot.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
version: 2
2+
updates:
3+
- package-ecosystem: composer
4+
directory: "/"
5+
schedule:
6+
interval: daily
7+
time: "06:00"
8+
reviewers:
9+
- lcobucci
10+
versioning-strategy: increase
11+
open-pull-requests-limit: 20
12+
allow:
13+
- dependency-type: all
14+
labels: ["Dependencies"]

.github/workflows/merge-bot.yml

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
name: Merge me!
2+
3+
on:
4+
check_suite:
5+
types:
6+
- completed
7+
pull_request:
8+
types:
9+
- edited
10+
- labeled
11+
- opened
12+
- ready_for_review
13+
- reopened
14+
- synchronize
15+
- unlabeled
16+
- unlocked
17+
18+
jobs:
19+
merge-me:
20+
name: Merge me!
21+
runs-on: ubuntu-latest
22+
steps:
23+
- name: Merge me!
24+
uses: ridedott/merge-me-action@v1
25+
with:
26+
# Depending on branch protection rules, a manually populated
27+
# `GITHUB_TOKEN_WORKAROUND` environment variable with permissions to
28+
# push to a protected branch must be used. This variable can have an
29+
# arbitrary name, as an example, this repository uses
30+
# `GITHUB_TOKEN_DOTTBOTT`.
31+
#
32+
# When using a custom token, it is recommended to leave the following
33+
# comment for other developers to be aware of the reasoning behind it:
34+
#
35+
# This must be used as GitHub Actions token does not support
36+
# pushing to protected branches.
37+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
38+
GITHUB_LOGIN: dependabot[bot]
39+
MERGE_METHOD: MERGE

.github/workflows/phpunit.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ jobs:
1919
- "development"
2020
php-version:
2121
- "7.4"
22+
- "8.0"
2223
operating-system:
2324
- "ubuntu-latest"
2425

@@ -71,7 +72,7 @@ jobs:
7172
dependencies:
7273
- "locked"
7374
php-version:
74-
- "8.0"
75+
- "8.1"
7576
operating-system:
7677
- "ubuntu-latest"
7778

Lines changed: 72 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,72 @@
1+
# https://help.github.com/en/categories/automating-your-workflow-with-github-actions
2+
3+
name: "Automatic Releases"
4+
5+
on:
6+
milestone:
7+
types:
8+
- "closed"
9+
10+
jobs:
11+
release:
12+
name: "GIT tag, release & create merge-up PR"
13+
runs-on: ubuntu-latest
14+
15+
steps:
16+
- name: "Checkout"
17+
uses: "actions/checkout@v2"
18+
19+
- name: "Release"
20+
uses: "laminas/automatic-releases@v1"
21+
with:
22+
command-name: "laminas:automatic-releases:release"
23+
env:
24+
"SHELL_VERBOSITY": "3"
25+
"GITHUB_TOKEN": ${{ secrets.ORGANIZATION_ADMIN_TOKEN }}
26+
"SIGNING_SECRET_KEY": ${{ secrets.SIGNING_SECRET_KEY }}
27+
"GIT_AUTHOR_NAME": ${{ secrets.GIT_AUTHOR_NAME }}
28+
"GIT_AUTHOR_EMAIL": ${{ secrets.GIT_AUTHOR_EMAIL }}
29+
30+
- name: "Create Merge-Up Pull Request"
31+
uses: "laminas/automatic-releases@v1"
32+
with:
33+
command-name: "laminas:automatic-releases:create-merge-up-pull-request"
34+
env:
35+
"SHELL_VERBOSITY": "3"
36+
"GITHUB_TOKEN": ${{ secrets.GITHUB_TOKEN }}
37+
"SIGNING_SECRET_KEY": ${{ secrets.SIGNING_SECRET_KEY }}
38+
"GIT_AUTHOR_NAME": ${{ secrets.GIT_AUTHOR_NAME }}
39+
"GIT_AUTHOR_EMAIL": ${{ secrets.GIT_AUTHOR_EMAIL }}
40+
41+
- name: "Create and/or Switch to new Release Branch"
42+
uses: "laminas/automatic-releases@v1"
43+
with:
44+
command-name: "laminas:automatic-releases:switch-default-branch-to-next-minor"
45+
env:
46+
"SHELL_VERBOSITY": "3"
47+
"GITHUB_TOKEN": ${{ secrets.ORGANIZATION_ADMIN_TOKEN }}
48+
"SIGNING_SECRET_KEY": ${{ secrets.SIGNING_SECRET_KEY }}
49+
"GIT_AUTHOR_NAME": ${{ secrets.GIT_AUTHOR_NAME }}
50+
"GIT_AUTHOR_EMAIL": ${{ secrets.GIT_AUTHOR_EMAIL }}
51+
52+
- name: "Bump Changelog Version On Originating Release Branch"
53+
uses: "laminas/automatic-releases@v1"
54+
with:
55+
command-name: "laminas:automatic-releases:bump-changelog"
56+
env:
57+
"SHELL_VERBOSITY": "3"
58+
"GITHUB_TOKEN": ${{ secrets.GITHUB_TOKEN }}
59+
"SIGNING_SECRET_KEY": ${{ secrets.SIGNING_SECRET_KEY }}
60+
"GIT_AUTHOR_NAME": ${{ secrets.GIT_AUTHOR_NAME }}
61+
"GIT_AUTHOR_EMAIL": ${{ secrets.GIT_AUTHOR_EMAIL }}
62+
63+
- name: "Create new milestones"
64+
uses: "laminas/automatic-releases@v1"
65+
with:
66+
command-name: "laminas:automatic-releases:create-milestones"
67+
env:
68+
"SHELL_VERBOSITY": "3"
69+
"GITHUB_TOKEN": ${{ secrets.GITHUB_TOKEN }}
70+
"SIGNING_SECRET_KEY": ${{ secrets.SIGNING_SECRET_KEY }}
71+
"GIT_AUTHOR_NAME": ${{ secrets.GIT_AUTHOR_NAME }}
72+
"GIT_AUTHOR_EMAIL": ${{ secrets.GIT_AUTHOR_EMAIL }}

0 commit comments

Comments
 (0)