Skip to content

Commit

Permalink
Update build.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
Deci8BelioS authored Oct 14, 2024
1 parent 07fc310 commit 7f42e2a
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,38 +29,38 @@ jobs:
- name: Install Python dependencies
run: pip install -r requirements.txt

- name: Establecer la identidad del usuario Git
- name: Set Git user identity
run: |
git config --global user.name "${{ secrets.GIT_USER_NAME }}"
git config --global user.email "${{ secrets.GIT_USER_EMAIL }}"
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: Ejecutar script AGH_Whitelist.py
- name: Execute script AGH_Whitelist.py
run: |
cd AGH/
chmod +x AGH_Whitelist.py
python3 ./AGH_Whitelist.py
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: Ejecutar script AGH_filters.py
- name: Execute script AGH_filters.py
run: |
cd AGH/
chmod +x AGH_filters.py
python3 ./AGH_filters.py
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: Aplicar cambios
- name: Apply changes
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
git add AGH/hosts.txt AGH/filters/whitelist/whitelist.txt
# Verifica si hay cambios en el área de staging antes de intentar hacer commit
# Check for changes in the staging area before attempting to commit.
if git diff --cached --quiet; then
echo "No hay cambios en los archivos seleccionados, nada que hacer."
echo "There are no changes to the selected files, nothing to do."
else
git commit -m "Actualizar archivos desde GitHub Actions"
git commit -m "Updating files from GitHub Actions"
git push origin main
fi

0 comments on commit 7f42e2a

Please sign in to comment.