Skip to content

Merge pull request #25 from mikaoelitiana/dependabot/npm_and_yarn/fol… #13

Merge pull request #25 from mikaoelitiana/dependabot/npm_and_yarn/fol…

Merge pull request #25 from mikaoelitiana/dependabot/npm_and_yarn/fol… #13

# example GitHub workflow
name: Publish resume in JSONResume format as Github Page
on:
push:
branches: [ master ]
schedule:
- cron: "0 0 1 * *"
jobs:
check_run:
runs-on: ubuntu-latest
if: "! contains(github.event.head_commit.message, '[ci skip]')"
steps:
- run: echo "${{ github.event.head_commit.message }}"
build:
runs-on: ubuntu-latest
needs: check_run
steps:
- uses: actions/checkout@v2
- name: Setup Node.js environment
uses: actions/[email protected]
- name: Install Dependencies
run: npm i
- name: Run export
run: npm run export-html
- name: Commit published HTML
id: commit
run: |
git config --local user.email "[email protected]"
git config --local user.name "GitHub Action"
if [ -n "$(git status --porcelain index.html)" ]; then
git add index.html
git commit -m "[ci skip] chore(index.html): update resume page"
echo ::set-output name=exit_code::0
else
echo ::set-output name=exit_code::1
fi
- name: Push changes
uses: ad-m/github-push-action@master
if: steps.commit.outputs.exit_code == 0
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
branch: ${{ github.ref }}