forked from matomo-org/device-detector
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'origin/master' into stable
# Conflicts: # DeviceDetector.php
- Loading branch information
Showing
56 changed files
with
64,829 additions
and
49,635 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 |
---|---|---|
@@ -1,8 +1,9 @@ | ||
Tests/ export-ignore | ||
misc/ export-ignore | ||
.github/ export-ignore | ||
.coveralls.yml export-ignore | ||
.travis.yml export-ignore | ||
phpunit.xml.dist export-ignore | ||
.gitignore export-ignore | ||
.gitattributes export-ignore | ||
.php_cs export-ignore | ||
.php_cs export-ignore |
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 |
---|---|---|
@@ -0,0 +1,59 @@ | ||
name: Update README.md | ||
|
||
on: | ||
push: | ||
branches: [ master ] | ||
|
||
jobs: | ||
build: | ||
|
||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
|
||
- name: Install dependencies | ||
run: composer install --prefer-dist --no-progress --no-suggest | ||
|
||
- name: update readme | ||
run: php misc/update-readme.php | ||
|
||
- name: Prepare git config | ||
run: | | ||
cat <<- EOF > $HOME/.netrc | ||
machine github.com | ||
login $GITHUB_ACTOR | ||
password $GITHUB_TOKEN | ||
machine api.github.com | ||
login $GITHUB_ACTOR | ||
password $GITHUB_TOKEN | ||
EOF | ||
chmod 600 $HOME/.netrc | ||
git config --global user.email "[email protected]" | ||
git config --global user.name "$GITHUB_ACTOR" | ||
- name: push changes & create PR | ||
run: | | ||
changes=($( git diff --numstat )) | ||
if [[ ${changes[0]} -gt 1 ]] | ||
then | ||
cd $GITHUB_WORKSPACE | ||
git push origin --delete updatereadme || true | ||
git branch -D updatereadme || true | ||
git checkout -b updatereadme | ||
git add README.md | ||
git commit -m "update README.md" | ||
git push --set-upstream origin updatereadme | ||
curl \ | ||
--request POST \ | ||
--header 'authorization: Bearer ${{ secrets.GITHUB_TOKEN }}' \ | ||
--header 'content-type: application/json' \ | ||
--data '{ | ||
"title":"Update README.md", | ||
"body":"updates detections in README.md", | ||
"head":"updatereadme", | ||
"base":"master" | ||
}' \ | ||
--url https://api.github.com/repos/${GITHUB_REPOSITORY}/pulls | ||
fi | ||
shell: bash |
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
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
Oops, something went wrong.