Clear history #169
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: 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 |