Skip to content

Commit 2c77a4c

Browse files
⬆️ CI/CD: Add Action
1 parent 24eac7f commit 2c77a4c

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

action.yml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
name: 'Git Action'
2+
3+
runs:
4+
using: "composite"
5+
steps:
6+
- name: 📝 Git Config
7+
run: |
8+
git config --global user.email ${{secrets.GIT_EMAIL}}
9+
git config --global user.name ${{secrets.GIT_NAME}}
10+
shell: bash
11+
12+
- name: 📝 Git Process
13+
run: |
14+
if [[ `git status --porcelain` ]]; then
15+
git add --all
16+
git commit -a -m "🤖 BOOT: Update"
17+
git push origin HEAD:master --force
18+
else
19+
echo "WARNING: No changes were detected. git commit push action aborted."
20+
fi
21+
shell: bash

0 commit comments

Comments
 (0)