Update CV #7210
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
name: Update CV | |
on: | |
push: | |
branches: | |
- main | |
workflow_dispatch: | |
schedule: | |
- cron: "*/5 * * * *" | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
permissions: # Otorga los permisos para el flujo de trabajo - Esto es necesario para crear un commit | |
issues: write | |
pull-requests: write | |
contents: write | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: actions/setup-node@v1 | |
with: | |
node-version: '20' | |
- run: npm install | |
- run: npm run update-cv | |
- name: Set up Git credentials # Configura las credenciales de Git | |
run: | | |
git config --global user.name "joshtin2505" | |
git config --global user.email "justincastro2505@gmail.com" | |
git remote set-url origin https://${{ secrets.ACCESS_TOKEN }}@github.com/joshtin2505/minimalist-portafolio.git | |
- name: Run script # Ejecuta el script | |
run: | | |
chmod +x ./.github/scripts/auto_commit.sh | |
bash ./.github/scripts/auto_commit.sh | |
- name: Push changes # Hace push de los cambios | |
run: | | |
git add . | |
git commit -m "new commit" | |
git push |