generated from creek-service/basic-kafka-streams-demo
-
-
Notifications
You must be signed in to change notification settings - Fork 0
38 lines (34 loc) · 1.11 KB
/
add-service.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
# A Workflow for adding new service modules to a repo.
name: Add service module
on:
workflow_dispatch:
inputs:
service_name:
description: "Service name, e.g. my-service. Lowercase alphanumerics and dashes only."
required: true
permissions:
contents: write
jobs:
add_service:
if: github.repository != 'creek-service/aggregate-template'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c # v3.3.0
- name: Install zsh
run: sudo apt install zsh
- name: Run script
shell: zsh {0}
run: |
./.creek/add_service.sh "${{ github.event.inputs.service_name }}"
- name: Check it builds
run: ./gradlew check
- name: Commit changes
run: |
git config --global user.email "95620007+Creek-Bot@users.noreply.github.com"
git config --global user.name "Creek Bot"
echo "adding files"
git add -A
echo "status"
git status
git commit -m "Adding service '${{ github.event.inputs.service_name }}'"
git push