mirror of
https://github.com/pestphp/pest.git
synced 2026-03-06 15:57:21 +01:00
Updated changelog action
This commit is contained in:
20
.github/workflows/changelog.yml
vendored
20
.github/workflows/changelog.yml
vendored
@ -21,12 +21,30 @@ jobs:
|
|||||||
token: ${{ secrets.CHANGELOG_KEY }}
|
token: ${{ secrets.CHANGELOG_KEY }}
|
||||||
repository: pestphp/website
|
repository: pestphp/website
|
||||||
path: pestphp-website
|
path: pestphp-website
|
||||||
|
- name: Read package.json
|
||||||
|
id: package
|
||||||
|
uses: juliangruber/read-file-action@v1
|
||||||
|
with:
|
||||||
|
path: ${{ env.home}}/CHANGELOG.md
|
||||||
|
- name: Add file headers
|
||||||
|
uses: DamianReeves/write-file-action@v1.0
|
||||||
|
with:
|
||||||
|
path: ./CHANGELOG.md
|
||||||
|
contents: |
|
||||||
|
---
|
||||||
|
title: Changelog
|
||||||
|
description: Changelog
|
||||||
|
extends: _layouts.documentation
|
||||||
|
section: content
|
||||||
|
---
|
||||||
|
${{ steps.package.outputs.content }}
|
||||||
|
write-mode: overwrite
|
||||||
- name: Copy CHANGELOG to website repository
|
- name: Copy CHANGELOG to website repository
|
||||||
run: cp CHANGELOG.md pestphp-website/source/docs/changelog.md
|
run: cp CHANGELOG.md pestphp-website/source/docs/changelog.md
|
||||||
- name: Create Pull Request
|
- name: Create Pull Request
|
||||||
uses: peter-evans/create-pull-request@v2
|
uses: peter-evans/create-pull-request@v2
|
||||||
with:
|
with:
|
||||||
token: ${{ secrets.CHANGELOG_KEY }}
|
token: ${{ secrets.CHANGELOG_KEY }}
|
||||||
commit-message: Update changelog.md
|
commit-message: Update changelog.md
|
||||||
committer: GitHub Action <noreply@github.com>
|
committer: GitHub Action <noreply@github.com>
|
||||||
author: ${{ github.actor }} <${{ github.actor }}@users.noreply.github.com>
|
author: ${{ github.actor }} <${{ github.actor }}@users.noreply.github.com>
|
||||||
|
|||||||
Reference in New Issue
Block a user