Skip to content

Commit

Permalink
Use changelog linker
Browse files Browse the repository at this point in the history
  • Loading branch information
core23 committed Dec 28, 2020
1 parent 5c48a35 commit 65a7e70
Show file tree
Hide file tree
Showing 3 changed files with 1,770 additions and 312 deletions.
57 changes: 53 additions & 4 deletions .github/workflows/release-drafter.yml
@@ -1,14 +1,63 @@
name: Release Drafter

on:
push:
branches:
- master
- main

name: "Draft Release"

jobs:
update_release_draft:
draft-release:
name: "Update release notes"

runs-on: ubuntu-latest

steps:
- uses: toolmantim/release-drafter@v5.13.0
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

changelog-linker:
name: "Link changelog entries"

runs-on: ubuntu-latest

strategy:
matrix:
php-version:
- 7.4

steps:
- name: "Checkout"
uses: actions/checkout@v2.3.4
with:
ref: "${{ github.head_ref }}"
token: ${{ secrets.NUCLEOS_BOT_TOKEN }}

- name: "Install PHP with extensions"
uses: shivammathur/setup-php@2.9.0
with:
coverage: none
extensions: "mbstring, json"
php-version: 7.4

- name: "Cache dependencies installed with composer"
uses: actions/cache@v2
with:
path: ~/.composer/cache
key: ${{ matrix.php-version }}-composer-
restore-keys: |
${{ matrix.php-version }}-composer-
- name: "Install locked dependencies with composer"
run: composer install --no-interaction --no-progress --no-suggest

- name: "Run changelog-linker"
run: vendor/bin/changelog-linker link

- name: "Commit changes"
uses: stefanzweifel/git-auto-commit-action@v4
with:
commit_user_name: "Nucleos Bot"
commit_user_email: "ci@nucleos.rocks"
commit_author: "Nucleos Bot <ci@nucleos.rocks>"
commit_message: "Link CHANGLOG users and PRs"
9 changes: 5 additions & 4 deletions vendor-bin/tools/composer.json
Expand Up @@ -7,18 +7,19 @@
"jangregor/phpstan-prophecy": "^0.8",
"maglnet/composer-require-checker": "^2.0",
"matthiasnoback/symfony-dependency-injection-test": "^4.0",
"phpmd/phpmd": "^2.9",
"phpspec/prophecy-phpunit": "^2.0",
"phpstan/extension-installer": "^1.0",
"phpstan/phpstan": "^0.12",
"phpstan/phpstan-phpunit": "^0.12",
"phpstan/phpstan-strict-rules": "^0.12",
"phpstan/phpstan-symfony": "^0.12",
"phpunit/phpunit": "^8.5 || ^9.0",
"psalm/plugin-phpunit": "^0.12",
"psalm/plugin-symfony": "^1.3",
"psalm/plugin-phpunit": "^0.15",
"psalm/plugin-symfony": "^2.1",
"symfony/phpunit-bridge": "^5.1",
"vimeo/psalm": "^3.11",
"phpmd/phpmd": "^2.9"
"symplify/changelog-linker": "^9.0",
"vimeo/psalm": "^4.3.1"
},
"config": {
"platform": {
Expand Down

0 comments on commit 65a7e70

Please sign in to comment.