-
Notifications
You must be signed in to change notification settings - Fork 11
46 lines (44 loc) · 1.45 KB
/
manual.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
name: Minecraft PC Assets Dumper
on:
workflow_dispatch:
inputs:
minecraft-version:
description: 'Version of minecraft to dump assets from'
default: '1.16.5'
required: true
jobs:
dump-assets:
runs-on: ubuntu-latest
steps:
- name: checkout
uses: actions/checkout@v2
- name: run tool
run: npm i && node image_names.js ${{ github.event.inputs.minecraft-version }} out temp
- name: upload to artifact
uses: actions/upload-artifact@v2
with:
name: data
path: out/${{ github.event.inputs.minecraft-version }}
make-pr:
runs-on: ubuntu-latest
needs: dump-assets
steps:
- name: Checkout
uses: actions/checkout@v2
with:
token: ${{ secrets.PAT_PASSWORD }}
repository: PrismarineJS/minecraft-assets
- name: download from artifact
uses: actions/[email protected]
with:
name: data
path: data/${{ github.event.inputs.minecraft-version }}/
- name: Create Pull Request
uses: peter-evans/create-pull-request@v3
with:
commit-message: Add data from ${{ github.event.inputs.minecraft-version }}
title: Add data from ${{ github.event.inputs.minecraft-version }}
body: |
Auto-generated by a GH workflow
branch: add-${{ github.event.inputs.minecraft-version }}-images
token: ${{ secrets.PAT_PASSWORD }}