Skip to content

Commit

Permalink
Create compile.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
EchoSingh authored Jun 15, 2024
1 parent 7266184 commit ba4eae4
Showing 1 changed file with 34 additions and 0 deletions.
34 changes: 34 additions & 0 deletions .github/workflows/compile.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: Update the Resume

on: push

jobs:
generate_cv_job:
runs-on: ubuntu-latest
name: A job to generate CV pdf on push
steps:
- name: Checkout
uses: actions/checkout@v2

- name: Run CV generation
uses: ./

- name: Commit files
id: commit
run: |
git config --local user.email "action@github.com"
git config --local user.name "github-actions"
git add --all
if [ -z "$(git status --porcelain)" ]; then
echo "::set-output name=push::false"
else
git commit -m "Updated Resume via GH Actions." -a
echo "::set-output name=push::true"
fi
shell: bash

- name: Push changes
if: steps.commit.outputs.push == 'true'
uses: ad-m/github-push-action@master
with:
github_token: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit ba4eae4

Please sign in to comment.