Skip to content

Commit d615e3a

Browse files
authored
Merge pull request #10 from wp-portugal/workflows
Usar stefanzweifel/git-auto-commit-action para commit
2 parents abe1a7d + b5949fc commit d615e3a

File tree

2 files changed

+16
-19
lines changed

2 files changed

+16
-19
lines changed

.github/dependabot.yml

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
# Dependabot set up for three package managers: GitHub Actions.
2+
3+
version: 2
4+
updates:
5+
6+
# Maintain dependencies for GitHub Actions.
7+
- package-ecosystem: "github-actions"
8+
# Files stored in repository root.
9+
directory: "/"
10+
schedule:
11+
# Check for updates every weekday.
12+
interval: "daily"
13+
open-pull-requests-limit: 10

.github/workflows/update-build-files.yml

+3-19
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,6 @@ env:
1111
OWNER: wp-portugal
1212
REPO: wp-portugal-i18n-build-files
1313
ACCESS_TOKEN: ${{ secrets.ACCESS_TOKEN }} # Access Token with write permissions.
14-
USER_NAME: ${{ secrets.USER_NAME }}
15-
USER_EMAIL: ${{ secrets.USER_EMAIL }}
1614

1715
permissions:
1816
contents: write
@@ -28,11 +26,6 @@ jobs:
2826

2927
steps:
3028

31-
- name: Setup Git User
32-
run: |
33-
git config --global user.email $USER_EMAIL
34-
git config --global user.name $USER_NAME
35-
3629
- name: Checkout trunk branch
3730
uses: actions/checkout@v4
3831
with:
@@ -77,11 +70,6 @@ jobs:
7770

7871
steps:
7972

80-
- name: Setup Git User
81-
run: |
82-
git config --global user.email $USER_EMAIL
83-
git config --global user.name $USER_NAME
84-
8573
- name: Checkout trunk branch
8674
uses: actions/checkout@v4
8775
with:
@@ -96,13 +84,9 @@ jobs:
9684
path: trunk
9785

9886
- name: Commit updated source files
99-
id: commit
100-
run: |
101-
# cp downloads/readme.html trunk/readme.html
102-
# cp downloads/wp-config-sample.php trunk/wp-config-sample.php
103-
git add trunk/readme.html trunk/wp-config-sample.php
104-
git commit -m "Update local files with remote changes from Trunk"
105-
git push origin HEAD
87+
uses: stefanzweifel/git-auto-commit-action@v5
88+
with:
89+
commit_message: Update local files with remote changes from Trunk
10690

10791
- name: Steps debug info
10892
run: |

0 commit comments

Comments
 (0)