Skip to content

Commit 03b14c6

Browse files
authored
Merge pull request #46 from flydev-fr/feat-custom-script
Feat custom script
2 parents 8d2ee3c + 196bef7 commit 03b14c6

File tree

3 files changed

+24
-13
lines changed

3 files changed

+24
-13
lines changed

.github/workflows/releases.yml

Lines changed: 16 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,17 @@ jobs:
1010

1111
steps:
1212
- uses: actions/checkout@v3
13+
- name: Initialize Git user
14+
run: |
15+
git config --global user.email "code@sekretservices.com"
16+
git config --global user.name "Release Workflow 🤖"
17+
- name: Log git status
18+
run: git status
1319
- name: conventional Changelog Action
1420
id: changelog
1521
uses: TriPSs/conventional-changelog-action@v3.18.0
1622
with:
1723
github-token: ${{ secrets.github_token }}
18-
1924
- name: create release
2025
uses: actions/create-release@v1
2126
if: ${{ steps.changelog.outputs.skipped == 'false' }}
@@ -25,11 +30,15 @@ jobs:
2530
tag_name: ${{ steps.changelog.outputs.tag }}
2631
release_name: ${{ steps.changelog.outputs.tag }}
2732
body: ${{ steps.changelog.outputs.clean_changelog }}
28-
29-
- name: Contribute List
30-
uses: akhilmhdh/contributors-readme-action@v2.3.6
31-
env:
32-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
33+
- name: Generate Contributors Images
34+
uses: jaywcjlove/github-action-contributors@main
35+
id: contributors
36+
with:
37+
filter-author: (renovate\[bot\]|renovate-bot|dependabot\[bot\])
38+
avatarSize: 32
39+
- name: Modify README.md
40+
uses: jaywcjlove/github-action-modify-file-content@main
3341
with:
34-
commit_message: "docs(contributor): contrib updated"
42+
path: README.md
43+
body: '${{steps.contributors.outputs.htmlList}}'
3544

Classes/BackupDatabase.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,7 @@ public function setDefaultShellScript($customScriptData = false)
6767
$stub = str_replace('%%USER%%', wire('config')->dbUser, $stub);
6868
$stub = str_replace('%%PASS%%', wire('config')->dbPass, $stub);
6969
$stub = str_replace('%%CACHEPATH%%', $this->options['cachePath'], $stub);
70+
$stub = str_replace('%%PORT%%', wire('config')->dbPort, $stub);
7071
}
7172

7273
// set shell script

README.md

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
![Duplicator](https://s3.us-west-2.amazonaws.com/processwire-forums/monthly_2017_11/Duplicator-logo-v2-Dlong.thumb.png.8898ec8cda79046779b10d8527fc0def.png)
2+
3+
***
4+
15
<div align="center">
26

37
![Current stable version)](https://img.shields.io/github/package-json/v/flydev-fr/duplicator)
@@ -9,10 +13,6 @@
913

1014
***
1115

12-
![Duplicator](https://s3.us-west-2.amazonaws.com/processwire-forums/monthly_2017_11/Duplicator-logo-v2-Dlong.thumb.png.8898ec8cda79046779b10d8527fc0def.png)
13-
14-
***
15-
1616
### WIP
1717

1818
- The readme is being re-written.
@@ -150,8 +150,9 @@ Timeout usually happen if you are on a low-end budget host with limitations. The
150150

151151
## Contributors
152152

153-
<!-- readme: szabeszg,contributors,tofahrn,adrianbj -start -->
154-
<!-- readme: contributors -end -->
153+
Thanks to all the contributors for their help and support.
154+
155+
<!--GAMFC--><!--GAMFC-END-->
155156

156157
# Special thanks
157158
- Duplicator's logo made by [@szabeszg](https://github.com/szabeszg)

0 commit comments

Comments
 (0)