-
-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #431 from ergebnis/feature/synchronize
Enhancement: Synchronize with ergebnis/php-library-template
- Loading branch information
Showing
4 changed files
with
26 additions
and
36 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,7 +9,6 @@ on: # yamllint disable-line rule:truthy | |
- "main" | ||
|
||
env: | ||
ERGEBNIS_BOT_NAME: "ergebnis-bot" | ||
MIN_COVERED_MSI: 92 | ||
MIN_MSI: 90 | ||
PHP_EXTENSIONS: "mbstring" | ||
|
@@ -88,7 +87,7 @@ jobs: | |
strategy: | ||
matrix: | ||
php-version: | ||
- "7.4" | ||
- "7.2" | ||
|
||
dependencies: | ||
- "locked" | ||
|
@@ -130,7 +129,7 @@ jobs: | |
strategy: | ||
matrix: | ||
php-version: | ||
- "7.4" | ||
- "7.2" | ||
|
||
dependencies: | ||
- "locked" | ||
|
@@ -251,7 +250,7 @@ jobs: | |
strategy: | ||
matrix: | ||
php-version: | ||
- "7.4" | ||
- "7.2" | ||
|
||
dependencies: | ||
- "locked" | ||
|
@@ -301,7 +300,7 @@ jobs: | |
strategy: | ||
matrix: | ||
php-version: | ||
- "7.4" | ||
- "7.2" | ||
|
||
dependencies: | ||
- "locked" | ||
|
@@ -357,12 +356,11 @@ jobs: | |
) && ( | ||
(github.actor == 'dependabot[bot]' && startsWith(github.event.pull_request.title, 'composer(deps-dev)')) || | ||
(github.actor == 'dependabot[bot]' && startsWith(github.event.pull_request.title, 'github-actions(deps)')) || | ||
(github.actor == 'ergebnis-bot' && github.event.pull_request.title == 'Enhancement: Update license year') || | ||
(github.actor == 'localheinz' && contains(github.event.pull_request.labels.*.name, 'merge')) | ||
) | ||
steps: | ||
- name: "Request review from @${{ env.ERGEBNIS_BOT_NAME }}" | ||
- name: "Request review from @ergebnis-bot" | ||
uses: "actions/[email protected]" | ||
with: | ||
github-token: "${{ secrets.ERGEBNIS_BOT_TOKEN }}" | ||
|
@@ -371,7 +369,7 @@ jobs: | |
const repository = context.repo | ||
const reviewers = [ | ||
"${{ env.ERGEBNIS_BOT_NAME }}", | ||
"ergebnis-bot", | ||
] | ||
await github.pulls.requestReviewers({ | ||
|
@@ -381,7 +379,7 @@ jobs: | |
reviewers: reviewers, | ||
}) | ||
- name: "Assign @${{ env.ERGEBNIS_BOT_NAME }}" | ||
- name: "Assign @ergebnis-bot" | ||
uses: "actions/[email protected]" | ||
with: | ||
github-token: "${{ secrets.ERGEBNIS_BOT_TOKEN }}" | ||
|
@@ -390,7 +388,7 @@ jobs: | |
const repository = context.repo | ||
const assignees = [ | ||
"${{ env.ERGEBNIS_BOT_NAME }}", | ||
"ergebnis-bot", | ||
] | ||
await github.issues.addAssignees({ | ||
|
@@ -402,7 +400,6 @@ jobs: | |
- name: "Approve pull request" | ||
uses: "actions/[email protected]" | ||
if: "github.actor != '${{ env.ERGEBNIS_BOT_NAME }}'" | ||
with: | ||
github-token: "${{ secrets.ERGEBNIS_BOT_TOKEN }}" | ||
script: | | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,11 +4,9 @@ name: "Renew" | |
|
||
on: # yamllint disable-line rule:truthy | ||
schedule: | ||
- cron: "1 0 1 1 *" | ||
- cron: "0 0 1 1 *" | ||
|
||
env: | ||
ERGEBNIS_BOT_EMAIL: "[email protected]" | ||
ERGEBNIS_BOT_NAME: "ergebnis-bot" | ||
PHP_EXTENSIONS: "mbstring" | ||
|
||
jobs: | ||
|
@@ -28,6 +26,8 @@ jobs: | |
steps: | ||
- name: "Checkout" | ||
uses: "actions/[email protected]" | ||
with: | ||
token: "${{ secrets.ERGEBNIS_BOT_TOKEN }}" | ||
|
||
- name: "Install PHP with extensions" | ||
uses: "shivammathur/[email protected]" | ||
|
@@ -65,19 +65,12 @@ jobs: | |
restore-keys: "php-${{ matrix.php-version }}-php-cs-fixer-" | ||
|
||
- name: "Run friendsofphp/php-cs-fixer" | ||
run: "vendor/bin/php-cs-fixer fix --config=.php_cs --diff --diff-format=udiff --dry-run --verbose" | ||
run: "vendor/bin/php-cs-fixer fix --config=.php_cs --diff --diff-format=udiff --verbose" | ||
|
||
- name: "Open pull request updating license year" | ||
uses: "gr2m/create-or-update-pull-request-action@v1.3.3" | ||
- name: "Commit modified files" | ||
uses: "stefanzweifel/git-auto-commit-action@v4.8.0" | ||
with: | ||
author: "${{ env.ERGEBNIS_BOT_NAME }} <${{ env.ERGEBNIS_BOT_EMAIL }}>" | ||
branch: "feature/license-year" | ||
body: | | ||
This PR | ||
* [x] updates the license year | ||
commit-message: "Enhancement: Update license year" | ||
path: "." | ||
title: "Enhancement: Update license year" | ||
env: | ||
GITHUB_TOKEN: "${{ secrets.ERGEBNIS_BOT_TOKEN }}" | ||
commit_author: "ergebnis-bot <[email protected]>" | ||
commit_message: "Enhancement: Update license year" | ||
commit_user_email: "[email protected]" | ||
commit_user_name: "ergebnis-bot" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters