re: update resume (testing GitHub Actions workflow) #1
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: Resume Builder | |
on: | |
push: | |
branches: | |
- main | |
paths: | |
- "example.py" | |
jobs: | |
generate-resume: | |
name: Generate Resume | |
if: github.repository == 'cybardev/resume' | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Run resume generation script | |
run: python3 example.py | |
- name: Commit changes | |
run: | | |
git config --local user.name "github-actions[bot]" | |
git config --local user.email "github-actions[bot]@users.noreply.github.com" | |
git commit -a -m "pipeline: update resume" | |
- name: Upload resume files | |
uses: ad-m/github-push-action@master | |
with: | |
branch: main | |
github_token: ${{ secrets.GITHUB_TOKEN }} |