Update types to MC v1.21.50 #1867
Workflow file for this run
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: CI | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
schedule: | |
- cron: "00 20 * * *" | |
jobs: | |
checks: | |
name: 'Script Check' | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- run: npm install | |
- name: Type Check | |
run: tsc --build | |
- name: Format Check | |
run: node ./dist/tools/index.js | |
env: | |
event_name: ${{ github.event_name }} | |
- name: Create Pull Request | |
if: ${{ github.event_name == 'schedule' }} | |
id: cpr | |
uses: peter-evans/create-pull-request@v6 | |
with: | |
token: ${{ secrets.JAYLYBOT_TOKEN }} | |
push-to-fork: jayly-bot/ScriptAPI | |
commit-message: Upload generated files | |
title: Upload generated files for scripts | |
body: Transpiled TypeScript files and created README files, please review. | |
branch: scripts/update | |
base: main | |
author: jayly-bot <121162959+jayly-bot@users.noreply.github.com> | |
- name: Check outputs | |
if: ${{ steps.cpr.outputs.pull-request-number }} | |
run: | | |
echo "Pull Request Number - ${{ steps.cpr.outputs.pull-request-number }}" | |
echo "Pull Request URL - ${{ steps.cpr.outputs.pull-request-url }}" | |
gh pr edit ${{ steps.cpr.outputs.pull-request-number }} --add-label "scripts" | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
PULL_REQUEST: ${{ steps.cpr.outputs.pull-request-url }} |