Skip to content

Clear history

Clear history #629

name: Clear history
on:
schedule:
- cron: "0 0 * * *"
jobs:
build:
name: Clear history
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
with:
ref: gh-pages
- name: NPM install
run: npm install
- name: Clear history
run: node index.js
- name: Commit changes
run: |
git config --local user.email "info@krateo.io"
git config --local user.name "krateoctl"
git commit -m "Clear history" -a
- name: Verify Changed files
uses: tj-actions/verify-changed-files@v13
id: verify-changed-files
with:
files: |
*.yml
*.yaml
*.tgz
- name: Push changes
if: steps.verify-changed-files.outputs.files_changed == 'true'
uses: ad-m/github-push-action@master
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
branch: gh-pages