Skip to content

Commit

Permalink
Merge pull request #10 from wp-portugal/workflows
Browse files Browse the repository at this point in the history
Usar stefanzweifel/git-auto-commit-action para commit
  • Loading branch information
zedejose authored Apr 16, 2024
2 parents abe1a7d + b5949fc commit d615e3a
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 19 deletions.
13 changes: 13 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# Dependabot set up for three package managers: GitHub Actions.

version: 2
updates:

# Maintain dependencies for GitHub Actions.
- package-ecosystem: "github-actions"
# Files stored in repository root.
directory: "/"
schedule:
# Check for updates every weekday.
interval: "daily"
open-pull-requests-limit: 10
22 changes: 3 additions & 19 deletions .github/workflows/update-build-files.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,6 @@ env:
OWNER: wp-portugal
REPO: wp-portugal-i18n-build-files
ACCESS_TOKEN: ${{ secrets.ACCESS_TOKEN }} # Access Token with write permissions.
USER_NAME: ${{ secrets.USER_NAME }}
USER_EMAIL: ${{ secrets.USER_EMAIL }}

permissions:
contents: write
Expand All @@ -28,11 +26,6 @@ jobs:

steps:

- name: Setup Git User
run: |
git config --global user.email $USER_EMAIL
git config --global user.name $USER_NAME
- name: Checkout trunk branch
uses: actions/checkout@v4
with:
Expand Down Expand Up @@ -77,11 +70,6 @@ jobs:

steps:

- name: Setup Git User
run: |
git config --global user.email $USER_EMAIL
git config --global user.name $USER_NAME
- name: Checkout trunk branch
uses: actions/checkout@v4
with:
Expand All @@ -96,13 +84,9 @@ jobs:
path: trunk

- name: Commit updated source files
id: commit
run: |
# cp downloads/readme.html trunk/readme.html
# cp downloads/wp-config-sample.php trunk/wp-config-sample.php
git add trunk/readme.html trunk/wp-config-sample.php
git commit -m "Update local files with remote changes from Trunk"
git push origin HEAD
uses: stefanzweifel/git-auto-commit-action@v5
with:
commit_message: Update local files with remote changes from Trunk

- name: Steps debug info
run: |
Expand Down

0 comments on commit d615e3a

Please sign in to comment.