From 504128730cf7bef481bf6dc3903fa5bdf5d879b3 Mon Sep 17 00:00:00 2001 From: Vaggelis Yfantis Date: Thu, 4 Jun 2020 16:53:08 +0300 Subject: [PATCH 1/2] Update changelog.yml --- .github/workflows/changelog.yml | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/.github/workflows/changelog.yml b/.github/workflows/changelog.yml index 008bf67e..4004fa39 100644 --- a/.github/workflows/changelog.yml +++ b/.github/workflows/changelog.yml @@ -1,10 +1,14 @@ -name: Update documentation CHANGELOG +name: Changelog on: push: branches: [ master ] paths: - CHANGELOG.md + pull_request: + branches: [ master ] + paths: + - CHANGELOG.md jobs: build: runs-on: ubuntu-latest @@ -24,4 +28,4 @@ jobs: committer: GitHub Action author: ${{ github.actor }} <${{ github.actor }}@users.noreply.github.com> title: 'Update changelog.md' - path: ./pestphp-website \ No newline at end of file + path: ./pestphp-website From e15d77f3f63b5452b234ca8be593e6fd45f71676 Mon Sep 17 00:00:00 2001 From: Vaggelis Yfantis Date: Thu, 4 Jun 2020 17:03:47 +0300 Subject: [PATCH 2/2] Update changelog.yml --- .github/workflows/changelog.yml | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/.github/workflows/changelog.yml b/.github/workflows/changelog.yml index 4004fa39..396ce8e0 100644 --- a/.github/workflows/changelog.yml +++ b/.github/workflows/changelog.yml @@ -15,11 +15,14 @@ jobs: steps: - uses: actions/checkout@v2 - - name: Add file to filesystem - run: | - git clone https://github.com/pestphp/website pestphp-website - cp CHANGELOG.md pestphp-website/source/docs - shell: bash + - 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: