Skip to content

Generate Repo

Generate Repo #26

name: Generate Repo
on:
schedule:
- cron: '0 0 * * 1'
workflow_dispatch:
repository_dispatch:
branches:
- main
types: [new-release]
jobs:
generate:
name: Generate Repo
runs-on: windows-2019
steps:
- name: Extract branch
shell: bash
run: echo "branch=$(echo ${GITHUB_REF#refs/heads/})" >> $GITHUB_ENV
id: extract_branch
- uses: actions/checkout@v1
- name: Run Powershell Script
run: .\generate-repo.ps1
- name: Commit files
continue-on-error: true
run: |
git config --local user.email "[email protected]"
git config --local user.name "GitHub Action"
git commit -m "Regenerate Repo" -a
- name: Push changes
continue-on-error: true
uses: ad-m/github-push-action@master
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
branch: ${{ env.branch }}