first
This commit is contained in:
@@ -0,0 +1,37 @@
|
||||
name: Update download counts
|
||||
|
||||
on:
|
||||
schedule:
|
||||
# * is a special character in YAML so you have to quote this string
|
||||
- cron: '0 1 * * *'
|
||||
workflow_dispatch:
|
||||
|
||||
jobs:
|
||||
update-counts:
|
||||
if: github.repository == 'goatcorp/DalamudPlugins'
|
||||
runs-on: ubuntu-latest
|
||||
timeout-minutes: 10
|
||||
|
||||
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: Update download counts
|
||||
run: |
|
||||
wget -O downloadcounts.json https://us-central1-xl-functions.cloudfunctions.net/get-dlcount
|
||||
- name: Commit files
|
||||
continue-on-error: true
|
||||
run: |
|
||||
git config --local user.email "action@github.com"
|
||||
git config --local user.name "GitHub Action"
|
||||
git add .
|
||||
git commit -m "Update download counts"
|
||||
- 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 }}
|
||||
|
||||
@@ -0,0 +1,38 @@
|
||||
name: Regenerate PluginMaster
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- api4
|
||||
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 "action@github.com"
|
||||
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 }}
|
||||
Reference in New Issue
Block a user