This repository has been archived by the owner on Aug 9, 2023. It is now read-only.
Regenerate PluginMaster #5717
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 PluginMaster | |
on: | |
push: | |
branches: | |
- api6 | |
page_build: | |
workflow_run: | |
workflows: ["Update download counts"] | |
types: | |
- completed | |
workflow_dispatch: | |
concurrency: regenerate | |
jobs: | |
generate: | |
name: Regenerate PluginMaster | |
if: github.repository == 'goatcorp/DalamudPlugins' | |
runs-on: windows-2019 | |
steps: | |
- name: Extract branch name | |
shell: bash | |
run: echo "##[set-output name=branch;]$(echo ${GITHUB_REF#refs/heads/})" | |
id: extract_branch | |
- uses: actions/checkout@v1 | |
- name: Run generator | |
run: .\Make-PluginMaster.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 PluginMaster" -a | |
- name: Push changes | |
continue-on-error: true | |
uses: ad-m/github-push-action@master | |
with: | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
branch: ${{ steps.extract_branch.outputs.branch }} | |
- name: Clear Web Services cache | |
run: curl -X POST --fail https://kamori.goats.dev/Plugin/ClearCache?key=$env:CACHE_CLEAR_KEY | |
env: | |
CACHE_CLEAR_KEY: ${{ secrets.CACHE_CLEAR_KEY }} |