regenerate #9447
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: regenerate | |
on: | |
schedule: | |
- cron: "0 */4 * * *" | |
jobs: | |
regenerate: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
ssh-key: ${{ secrets.DEPLOY_KEY }} | |
- uses: actions/setup-node@v3 | |
with: | |
node-version: 20 | |
- run: make deps | |
- run: make build | |
env: | |
GHD_GH_USERNAME: ${{ secrets.GHD_GH_USERNAME }} | |
GHD_GH_PASSWORD: ${{ secrets.GHD_GH_PASSWORD }} | |
GHD_GH_TOTP_SECRET: ${{ secrets.GHD_GH_TOTP_SECRET }} | |
- run: | | |
if [[ $(git status --porcelain --untracked-files=no) ]]; then | |
git fetch --unshallow --quiet --tags | |
git config user.name "github-actions[bot]" | |
git config user.email "41898282+github-actions[bot]@users.noreply.github.com" | |
git commit -am "automated regeneration" | |
make patch | |
else | |
echo "Nothing to commit" | |
fi |