Skip to content

Update Comparison List (Latest) #58

Update Comparison List (Latest)

Update Comparison List (Latest) #58

Workflow file for this run

name: Update Comparison List (Latest)
on:
workflow_dispatch:
inputs:
version:
description: "version"
required: false
type: string
schedule:
- cron: 0 0 * * 1
permissions:
contents: write
jobs:
list_generate:
name: List Generate
runs-on: ubuntu-latest
steps:
- name: Checking Repository
uses: actions/checkout@v4
with:
persist-credentials: false
fetch-depth: 0
- name: Run update langauge script
if: inputs.version == ''
id: mc
run: python .github/scripts/update-language.py
- name: Run update langauge script
if: inputs.version != ''
id: mc_version
run: python .github/scripts/update-language.py ${{ inputs.version }}
- name: Commit & Push changes
if: inputs.version == ''
uses: GuillaumeFalourd/[email protected]
with:
name: github-actions[bot]
email: 41898282+github-actions[bot]@users.noreply.github.com
access_token: ${{ secrets.GITHUB_TOKEN }}
commit_message: "chore: 更新 Minecraft ${{ steps.mc.outputs.mc_version }} 對照表"
- name: Commit & Push changes
if: inputs.version != ''
uses: GuillaumeFalourd/[email protected]
with:
name: github-actions[bot]
email: 41898282+github-actions[bot]@users.noreply.github.com
access_token: ${{ secrets.GITHUB_TOKEN }}
commit_message: "chore: 更新 Minecraft ${{ steps.mc_version.outputs.mc_version }} 對照表"