Skip to content

Downloaded file via GitHub Actions #11

Downloaded file via GitHub Actions

Downloaded file via GitHub Actions #11

Workflow file for this run

name: Download Resume
on:
push:
branches:
- main
paths-ignore:
- 'static/**'
jobs:
download-file:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
with:
persists-credentials: false
fetch-depth: 0
token: ${{ secrets.GH_TOKEN_CLASSIC_LOERAFLORES_COM }}
- name: Change directory
run: cd static/files
- name: Download file
run: |
curl -O https://raw.githubusercontent.com/xavierloeraflores/resume/main/resume.pdf
- name: Configure Git
run: |
git config --global user.email "[email protected]"
git config --global user.name "xavierloeraflores"
- name: Commit and push changes
run: |
git add .
git commit -m "Downloaded file via GitHub Actions"
git push