-
Notifications
You must be signed in to change notification settings - Fork 0
/
entrypoint.sh
62 lines (59 loc) · 2.45 KB
/
entrypoint.sh
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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
#!/bin/sh -l
# -----------------
# Arguments:
# ----
# Versioniser Credentials
git_credential_username=$1 # [Git Credential]
git_credential_email=$2 # [Git Credential]
# ----
# Commit Tags
commit_pattern_increment_tags=$3 # [Tags]
commit_pattern_change_tags=$4 # [Tags]
# ----
# Versioning
routine_version=$5 # [Routine]
# ----
# Contributing
routine_should_contribute=$6 # [Routine]
routine_commiting=$7 # [Routine]
# ----
# Commit Message
routine_commit_message_describe_changes=${8} # [Routine]
routine_commit_message_format_version_tag=${9} # [Routine]
routine_commit_message_place_version_tag=${10} # [Routine]
routine_commit_message_summarize_changes=${11} # [Routine]
# ----
# Tagging
routine_tagging=${12} # [Routine]
routine_prefix_tag_with_v=${13} # [Routine]
# ----
# Changelog
routine_changelog=${14} # [Routine]
# ----
# File Updating
routine_file_updater=${15} # [Routine]
versionised_files=${16} # [Setting] For: routine_file_updater
# -----------------
# Git Configuration
git config --global --add safe.directory /github/workspace/target_repository
git config --global user.name "$git_credential_username"
git config --global user.email "$git_credential_email"
# -----------------
# Running the Script
cd target_repository
python -m pip install -e .
python /src/main.py -d . \
--commit_pattern_increment_tags $commit_pattern_increment_tags \
--commit_pattern_change_tags $commit_pattern_change_tags \
--routine_version $routine_version \
--routine_should_contribute $routine_should_contribute \
--routine_commiting $routine_commiting \
--routine_commit_message_describe_changes $routine_commit_message_describe_changes \
--routine_commit_message_format_version_tag $routine_commit_message_format_version_tag \
--routine_commit_message_place_version_tag $routine_commit_message_place_version_tag \
--routine_commit_message_summarize_changes $routine_commit_message_summarize_changes \
--routine_tagging $routine_tagging \
--routine_prefix_tag_with_v $routine_prefix_tag_with_v \
--routine_changelog $routine_changelog \
--routine_file_updater $routine_file_updater \
--versioned_files $versionised_files