mirror of
https://github.com/pestphp/pest.git
synced 2026-03-06 15:57:21 +01:00
35 lines
953 B
YAML
35 lines
953 B
YAML
name: Changelog
|
|
|
|
on:
|
|
push:
|
|
branches: [ master ]
|
|
paths:
|
|
- CHANGELOG.md
|
|
pull_request:
|
|
branches: [ master ]
|
|
paths:
|
|
- CHANGELOG.md
|
|
jobs:
|
|
build:
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
- name: Checkout website repository
|
|
uses: actions/checkout@v2
|
|
with:
|
|
token: ${{ secrets.CHANGELOG_KEY }}
|
|
repository: pestphp/website
|
|
path: pestphp-website
|
|
- name: Copy CHANGELOG to website repository
|
|
run: cp CHANGELOG.md pestphp-website/source/docs/changelog.md
|
|
- name: Create Pull Request
|
|
uses: peter-evans/create-pull-request@v2
|
|
with:
|
|
token: ${{ secrets.CHANGELOG_KEY }}
|
|
commit-message: Update changelog.md
|
|
committer: GitHub Action <noreply@github.com>
|
|
author: ${{ github.actor }} <${{ github.actor }}@users.noreply.github.com>
|
|
title: 'Update changelog.md'
|
|
path: ./pestphp-website
|