Skip to content

new-release

new-release #377

name: Generate Repo
on:
schedule:
- cron: '0 1 */7 * *'
workflow_dispatch:
repository_dispatch:
types: [new-release]
jobs:
generate:
name: Generate Repo
runs-on: windows-2019
steps:
- name: Extract branch
shell: bash
run: echo "##[set-output name=branch;]$(echo ${GITHUB_REF#refs/heads/})"
id: extract_branch
- uses: actions/checkout@v1
- name: Run Powershell Script
run: .\resources\generate-repo.ps1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- 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.PAT }}
branch: ${{ steps.extracted_branch.outputs.branch }}