-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(actions): make PR ci run on every PR (#1098)
- Loading branch information
1 parent
8858f43
commit d66b7a6
Showing
2 changed files
with
11 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 }} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,8 +3,6 @@ name: Pull Request | |
|
||
on: | ||
pull_request: | ||
branches: | ||
- master | ||
|
||
jobs: | ||
commitlint: | ||
|