Skip to content

Commit 4ce17a9

Browse files
committed
Added custom GitHub action
1 parent e7a7629 commit 4ce17a9

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
name: checkout-and-setup-python
2+
description: 'Checkout the repository and setup Python'
3+
inputs:
4+
python-version:
5+
description: 'Python version to use'
6+
required: false
7+
default: '3.11'
8+
runs:
9+
using: 'composite'
10+
steps:
11+
- uses: actions/setup-python@v4
12+
name: Setup Python
13+
with:
14+
python-version: ${{ inputs.python-version }}
15+
cache: 'pip' # caching pip dependencies
16+
17+
- name: Git check
18+
run: |
19+
git config --global user.email "[email protected]"
20+
git config --global user.name "Testing Git"
21+
git --version
22+
git config --list
23+
shell: bash

0 commit comments

Comments
 (0)