generated from tinkerhub/saturday-hack-night-template
-
Notifications
You must be signed in to change notification settings - Fork 0
34 lines (34 loc) · 1020 Bytes
/
add-project.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
name: Add Project
on:
workflow_dispatch:
inputs:
repo_url:
description: 'Repository URL (https)'
required: true
folder_name:
description: 'Folder Name'
required: true
concurrency:
group: add-project
cancel-in-progress: false
jobs:
version-bump:
name: Add Project
runs-on: ubuntu-latest
steps:
- name: Checkout Source
uses: actions/checkout@v2
with:
submodules: "true"
- name: Add project as submodule
run: |
git submodule add ${{ github.event.inputs.repo_url }} "${{ github.event.inputs.folder_name }}"
- name: Commit changes
run: |
git config user.name tinkerhub-bot
git config user.email bot@tinkerhub.org
git add --all || true
git commit -m "Added ${{ github.event.inputs.folder_name }}" || true
git config pull.rebase true || true
git pull || true
git push --quiet