File tree 3 files changed +13
-28
lines changed
3 files changed +13
-28
lines changed Original file line number Diff line number Diff line change 21
21
uses : stefanzweifel/git-auto-commit-action@v4
22
22
with :
23
23
commit_message : " build: Export updated requirements.txt"
24
-
25
- - name : Push changes
26
- uses : ad-m/github-push-action@master
27
- with :
28
- branch : ${{ github.ref }}
29
- github_token : ${{ secrets.GITHUB_TOKEN }}
30
- force : true
Original file line number Diff line number Diff line change @@ -10,20 +10,21 @@ jobs:
10
10
11
11
steps :
12
12
13
- - name : Get alliteration char
13
+ - name : Install petname
14
+ shell : bash
14
15
run : |
15
- echo "random_char=$(tr -dc 'a-z' < /dev/urandom | dd bs=1 count=1 2>/dev/null)" >> $GITHUB_ENV
16
-
16
+ sudo apt update
17
+ sudo apt install petname -y
18
+
17
19
- name : Generate name
18
- id : generate-name
19
- uses : cyberbartels/random-pet@main
20
- with :
21
- alliteration : ${{ env.random_char }}
20
+ shell : bash
21
+ run : |
22
+ echo "petname=$(petname --words 3 --complexity 0 --ubuntu)" >> $GITHUB_ENV
22
23
23
24
- name : Check result
24
25
shell : bash
25
26
run : |
26
- echo ${{ steps.generate-name.outputs .petname }}
27
+ echo New version constraint key: ${{ env .petname }}
27
28
28
29
- name : Checkout
29
30
uses : actions/checkout@v3
@@ -33,19 +34,10 @@ jobs:
33
34
with :
34
35
path : version_constraint_key
35
36
contents : |
36
- ${{ steps.generate-name.outputs .petname }}
37
+ ${{ env .petname }}
37
38
write-mode : overwrite
38
39
39
40
- name : Commit files
40
- run : |
41
- git config --local user.email "[email protected] "
42
- git config --local user.name "Update VC-key Action"
43
- git add .
44
- git commit -m "refactor: Update version-constraint key"
45
-
46
- - name : Push changes
47
- uses : ad-m/github-push-action@master
41
+ uses : stefanzweifel/git-auto-commit-action@v4
48
42
with :
49
- branch : ${{ github.ref }}
50
- github_token : ${{ secrets.GITHUB_TOKEN }}
51
- force : true
43
+ commit_message : " refactor: Update version_constraint_key"
Original file line number Diff line number Diff line change 1
- famous-finch
1
+ shortly-smooth-serval
You can’t perform that action at this time.
0 commit comments