mirror of
https://github.com/barkeser2002/minecraft-data.git
synced 2026-11-24 09:06:06 +03:00
- Modified update-helper.yml to accept test_version parameter - Updated helper bot to handle TEST_VERSION env var - Test version triggers full automation chain naturally - E2E test now passes test version to update-helper
34 lines
908 B
YAML
34 lines
908 B
YAML
name: Update Helper
|
|
on:
|
|
workflow_dispatch:
|
|
inputs:
|
|
test_version:
|
|
description: 'Test version to inject (for testing only)'
|
|
required: false
|
|
default: ''
|
|
type: string
|
|
schedule:
|
|
- cron: "0 */2 * * *"
|
|
|
|
jobs:
|
|
helper:
|
|
name: update-checker
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout repository
|
|
uses: actions/checkout@master
|
|
- name: Set up Node.js
|
|
uses: actions/setup-node@master
|
|
with:
|
|
node-version: 22.0.0
|
|
- name: Install Github Actions toolkit
|
|
run: npm i
|
|
working-directory: .github/helper-bot
|
|
# The env vars contain the relevant trigger information, so we don't need to pass it
|
|
- name: Runs helper
|
|
run: node index.js
|
|
working-directory: .github/helper-bot
|
|
env:
|
|
GITHUB_TOKEN: ${{ secrets.PAT_PASSWORD }}
|
|
TEST_VERSION: ${{ github.event.inputs.test_version }}
|