Skip to content

Commit

Permalink
ci: push changes if something changed
Browse files Browse the repository at this point in the history
  • Loading branch information
xhyrom committed Apr 1, 2024
1 parent 851a96a commit a6be65c
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ on:

# Allow this job to clone the repo and create a page deployment
permissions:
contents: read
contents: write
pages: write
id-token: write

Expand All @@ -22,10 +22,21 @@ jobs:
uses: actions/checkout@v4
with:
submodules: "recursive"

- name: Make writeups
run: |
rm -rf src/content/writeups/*
./make.sh
- name: Try to push changes
uses: actions-js/push@master
continue-on-error: true
with:
github_token: "${{ secrets.GITHUB_TOKEN }}"
author_email: 41898282+github-actions[bot]@users.noreply.github.com
author_name: github-actions[bot]
message: Update writeups 🚀

- name: Install, build, and upload your site
uses: withastro/action@v2
with:
Expand Down

0 comments on commit a6be65c

Please sign in to comment.