Skip to content

Commit aa178c1

Browse files
committed
previous worked. re-adding commit hash update as spearate workflow
1 parent fc6e751 commit aa178c1

File tree

2 files changed

+23
-3
lines changed

2 files changed

+23
-3
lines changed

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

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ on:
77

88
jobs:
99
build:
10-
name: remove prefixes
1110
runs-on: ubuntu-latest
1211
steps:
1312
- uses: actions/checkout@v3
@@ -23,10 +22,9 @@ jobs:
2322
mv -n $file $justpath/$justfile
2423
fi
2524
done
26-
git log -1 --format='%H' > latestCommit.md
2725
git add .
2826
git config --global user.email "[email protected]"
2927
git config --global user.name "ActionBot"
30-
git commit -m 'test'
28+
git commit -m 'remove file prefixes'
3129
git push -f
3230
git reset origin/development --soft
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
name: Update Commit Hash
2+
3+
on:
4+
pull_request:
5+
workflow_dispatch:
6+
7+
jobs:
8+
update_commit_hash:
9+
permissions: write-all
10+
runs-on: ubuntu-latest
11+
steps:
12+
- uses: actions/checkout@v2
13+
- name: Update file with merge commit hash
14+
run: |
15+
git pull origin development --rebase
16+
git log -1 --format='%H' > latestCommit.md
17+
git config --global user.email "[email protected]"
18+
git config --global user.name "ActionBot"
19+
git add latestCommit.md
20+
git commit -m 'update commit hash'
21+
git push -f
22+
git reset origin/development --soft

0 commit comments

Comments
 (0)