Skip to content

Commit

Permalink
chore(actions): make PR ci run on every PR (#1098)
Browse files Browse the repository at this point in the history
  • Loading branch information
vascoalramos authored Oct 10, 2022
1 parent 8858f43 commit d66b7a6
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 6 deletions.
15 changes: 11 additions & 4 deletions .github/workflows/merge-master.yml
Original file line number Diff line number Diff line change
Expand Up @@ -73,12 +73,19 @@ jobs:
| pandoc --from markdown --to rst --standalone > ${{ steps.path.outputs.value }}
- name: Commit changelog
id: commit
run: |
git add ${{ steps.path.outputs.value }}
git commit -m "[skip ci] Update changelogs" -a || true
- name: Push changes
if [[ `git status --porcelain --untracked-files=no` ]]; then
echo ::set-output name=CHANGES::true
git add ${{ steps.path.outputs.value }}
git commit -m "[skip ci] Update changelogs" -a
else
echo ::set-output name=CHANGES::false
fi
- name: Push changes
uses: ad-m/[email protected]
if: ${{ steps.commit.outputs.CHANGES == 'true' }}
with:
branch: ${{ github.ref }}
github_token: ${{ secrets.ACCESS_TOKEN }}
Expand Down
2 changes: 0 additions & 2 deletions .github/workflows/pull-request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@ name: Pull Request

on:
pull_request:
branches:
- master

jobs:
commitlint:
Expand Down

0 comments on commit d66b7a6

Please sign in to comment.