File tree Expand file tree Collapse file tree 2 files changed +20
-30
lines changed Expand file tree Collapse file tree 2 files changed +20
-30
lines changed Original file line number Diff line number Diff line change @@ -2,8 +2,8 @@ name: Remove Function Name Prefixes
2
2
3
3
on :
4
4
push :
5
- paths :
6
- - " functions/** "
5
+ branches :
6
+ - development
7
7
8
8
jobs :
9
9
build :
12
12
steps :
13
13
- uses : actions/checkout@v3
14
14
- run : |
15
- for file in functions/*; do
16
- justfile=$(basename -- "$file")
17
- justfile="${justfile#*_}"
18
- mv $file ./functions/$justfile
19
- done
15
+ git pull origin development --rebase
16
+ for file in $(find ./snippets/functions/ -type f -name '*.js'); do
17
+ if [[ "$file" == *"_"* ]];then
18
+ justfile=$(basename -- "$file")
19
+ justpath=$(dirname "$file")
20
+ # echo $justfile
21
+ justfile="${justfile#*_}"
22
+ echo $justpath/$justfile
23
+ mv -n $file $justpath/$justfile
24
+ fi
25
+ done
26
+ git log -1 --format='%H' > latestCommit.md
27
+ git add .
28
+ git config --global user.email "[email protected] "
29
+ git config --global user.name "ActionBot"
30
+ git commit -m 'test'
31
+ git push -f
32
+ git reset origin/development --soft
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments