Skip to content

Commit 7c6f3f8

Browse files
committed
Only configure git when running the script via Github Action
1 parent fa13ac3 commit 7c6f3f8

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

scripts/createcommits.sh

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,11 @@
1313
# See the License for the specific language governing permissions and
1414
# limitations under the License.
1515

16-
git config --global user.name 'Yoshi Automation'
17-
git config --global user.email '[email protected]'
16+
# If this is a github job, configure git
17+
if [[ $GITHUB_JOB == 1 ]]; then
18+
git config --global user.name 'Yoshi Automation'
19+
git config --global user.email '[email protected]'
20+
fi
1821

1922
while read api;
2023
do

0 commit comments

Comments
 (0)