mirror of
https://github.com/pestphp/pest.git
synced 2026-03-11 18:27:23 +01:00
21
.github/workflows/changelog.yml
vendored
21
.github/workflows/changelog.yml
vendored
@ -1,21 +1,28 @@
|
|||||||
name: Update documentation CHANGELOG
|
name: Changelog
|
||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
branches: [ master ]
|
branches: [ master ]
|
||||||
paths:
|
paths:
|
||||||
- CHANGELOG.md
|
- CHANGELOG.md
|
||||||
|
pull_request:
|
||||||
|
branches: [ master ]
|
||||||
|
paths:
|
||||||
|
- CHANGELOG.md
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
- name: Add file to filesystem
|
- name: Checkout website repository
|
||||||
run: |
|
uses: actions/checkout@v2
|
||||||
git clone https://github.com/pestphp/website pestphp-website
|
with:
|
||||||
cp CHANGELOG.md pestphp-website/source/docs
|
token: ${{ secrets.CHANGELOG_KEY }}
|
||||||
shell: bash
|
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
|
- name: Create Pull Request
|
||||||
uses: peter-evans/create-pull-request@v2
|
uses: peter-evans/create-pull-request@v2
|
||||||
with:
|
with:
|
||||||
@ -24,4 +31,4 @@ jobs:
|
|||||||
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>
|
||||||
title: 'Update changelog.md'
|
title: 'Update changelog.md'
|
||||||
path: ./pestphp-website
|
path: ./pestphp-website
|
||||||
|
|||||||
Reference in New Issue
Block a user