Skip to content

Commit 2818ba9

Browse files
authored
Merge pull request #711 from greg0ire/reuse-workflows
Reuse workflows from upstream
2 parents c7b8d1b + 90b4b18 commit 2818ba9

File tree

2 files changed

+11
-74
lines changed

2 files changed

+11
-74
lines changed

.github/workflows/coding-standards.yml

+1-28
Original file line numberDiff line numberDiff line change
@@ -11,31 +11,4 @@ on:
1111
jobs:
1212
coding-standards:
1313
name: "Coding Standards"
14-
runs-on: "ubuntu-20.04"
15-
16-
strategy:
17-
matrix:
18-
php-version:
19-
- "7.4"
20-
- "8.0"
21-
22-
steps:
23-
- name: "Checkout"
24-
uses: "actions/checkout@v2"
25-
26-
- name: "Install PHP"
27-
uses: "shivammathur/setup-php@v2"
28-
with:
29-
coverage: "none"
30-
php-version: "${{ matrix.php-version }}"
31-
tools: "cs2pr"
32-
33-
- name: "Set minimum-stability to stable in Composer"
34-
run: "composer config minimum-stability stable"
35-
36-
- name: "Install dependencies with Composer"
37-
uses: "ramsey/composer-install@v1"
38-
39-
# https://github.com/doctrine/.github/issues/3
40-
- name: "Run PHP_CodeSniffer"
41-
run: "vendor/bin/phpcs -q --no-colors --report=checkstyle | cs2pr"
14+
uses: "doctrine/.github/.github/workflows/[email protected]"

.github/workflows/release-on-milestone-closed.yml

+10-46
Original file line numberDiff line numberDiff line change
@@ -7,49 +7,13 @@ on:
77

88
jobs:
99
release:
10-
name: "GIT tag, release & create merge-up PR"
11-
runs-on: "ubuntu-20.04"
12-
13-
steps:
14-
- name: "Checkout"
15-
uses: "actions/checkout@v2"
16-
17-
- name: "Release"
18-
uses: "laminas/[email protected]"
19-
with:
20-
command-name: "laminas:automatic-releases:release"
21-
env:
22-
"GITHUB_TOKEN": ${{ secrets.GITHUB_TOKEN }}
23-
"SIGNING_SECRET_KEY": ${{ secrets.SIGNING_SECRET_KEY }}
24-
"GIT_AUTHOR_NAME": ${{ secrets.GIT_AUTHOR_NAME }}
25-
"GIT_AUTHOR_EMAIL": ${{ secrets.GIT_AUTHOR_EMAIL }}
26-
27-
- name: "Create Merge-Up Pull Request"
28-
uses: "laminas/[email protected]"
29-
with:
30-
command-name: "laminas:automatic-releases:create-merge-up-pull-request"
31-
env:
32-
"GITHUB_TOKEN": ${{ secrets.GITHUB_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 and/or Switch to new Release Branch"
38-
uses: "laminas/automatic-releases@v1"
39-
with:
40-
command-name: "laminas:automatic-releases:switch-default-branch-to-next-minor"
41-
env:
42-
"GITHUB_TOKEN": ${{ secrets.ORGANIZATION_ADMIN_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 new milestones"
48-
uses: "laminas/automatic-releases@v1"
49-
with:
50-
command-name: "laminas:automatic-releases:create-milestones"
51-
env:
52-
"GITHUB_TOKEN": ${{ secrets.GITHUB_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 }}
10+
name: "Git tag, release & create merge-up PR"
11+
uses: "doctrine/.github/.github/workflows/[email protected]"
12+
secrets:
13+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
14+
GIT_AUTHOR_EMAIL: ${{ secrets.GIT_AUTHOR_EMAIL }}
15+
GIT_AUTHOR_NAME: ${{ secrets.GIT_AUTHOR_NAME }}
16+
ORGANIZATION_ADMIN_TOKEN: ${{ secrets.ORGANIZATION_ADMIN_TOKEN }}
17+
SIGNING_SECRET_KEY: ${{ secrets.SIGNING_SECRET_KEY }}
18+
with:
19+
use-next-minor-as-default-branch: true

0 commit comments

Comments
 (0)