-
Notifications
You must be signed in to change notification settings - Fork 2
33 lines (28 loc) · 1.01 KB
/
createjs.yml
File metadata and controls
33 lines (28 loc) · 1.01 KB
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
name: "Create a new user script (js)"
on:
workflow_dispatch:
inputs:
folder:
description: 'Folder : The name of the folder where your script will be placed (typically the site name where the script will execute)'
required: true
name:
description: 'Script name : A name describing what your script does (typically a string with letters and "-", so no spaces)'
required: true
jobs:
configure:
runs-on: "ubuntu-latest"
steps:
- name: "Checkout"
uses: actions/checkout@v3
with:
submodules: true
- name: "Create a new script ${{ inputs.folder }}/${{ inputs.name }}"
run: |
bash ./manage.sh createjs "${{ inputs.folder }}" "${{ inputs.name }}"
- name: "Commit"
run: |
git config user.name "GitHub Actions Bot"
git config user.email "<>"
git add .
git commit -m "Create a new script ${{ inputs.folder }}/${{ inputs.name }} (from GitHub Actions)"
git push