Skip to content

Commit bf63d54

Browse files
committed
Init
0 parents  commit bf63d54

6 files changed

+591
-0
lines changed

LICENSE

+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
MIT License
2+
3+
Copyright (c) 2019 Christian Gripp
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.

README.md

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
# Reusable GitHub Actions

workflows/automatic-merge.yml

+19
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
name: "Automatic Merge"
2+
3+
on:
4+
workflow_call:
5+
secrets:
6+
GITHUB_ADMIN_TOKEN:
7+
required: true
8+
9+
jobs:
10+
merge:
11+
name: "Merge Pull Requests"
12+
13+
runs-on: "ubuntu-latest"
14+
15+
steps:
16+
- name: "Merge"
17+
uses: "nucleos/auto-merge-action@1.2.0"
18+
env:
19+
GITHUB_TOKEN: "${{ secrets.GITHUB_ADMIN_TOKEN }}"

workflows/automatic-release.yml

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

0 commit comments

Comments
 (0)