Skip to content

Commit 57d75bf

Browse files
committed
new branch
1 parent 15b7ea6 commit 57d75bf

File tree

2 files changed

+20
-30
lines changed

2 files changed

+20
-30
lines changed

.github/workflows/Remove-Function-Name-Prefix.yml

Lines changed: 20 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@ name: Remove Function Name Prefixes
22

33
on:
44
push:
5-
paths:
6-
- "functions/**"
5+
branches:
6+
- development
77

88
jobs:
99
build:
@@ -12,8 +12,21 @@ jobs:
1212
steps:
1313
- uses: actions/checkout@v3
1414
- 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

.github/workflows/Update-Commit-Hash.yml

Lines changed: 0 additions & 23 deletions
This file was deleted.

0 commit comments

Comments
 (0)