1 |
rakinar2 |
631 |
name: Update dev Branch |
2 |
|
|
|
3 |
|
|
on: |
4 |
|
|
push: |
5 |
|
|
branches: |
6 |
|
|
- main |
7 |
|
|
|
8 |
|
|
permissions: |
9 |
|
|
contents: write |
10 |
|
|
|
11 |
|
|
concurrency: |
12 |
|
|
group: ${{ github.event.ref }} |
13 |
|
|
cancel-in-progress: true |
14 |
|
|
|
15 |
|
|
jobs: |
16 |
|
|
update: |
17 |
|
|
runs-on: ubuntu-latest |
18 |
|
|
|
19 |
|
|
steps: |
20 |
|
|
- name: Checkout |
21 |
|
|
uses: actions/checkout@v4 |
22 |
|
|
|
23 |
|
|
- name: Prepare Git |
24 |
|
|
run: | |
25 |
|
|
echo "${{ secrets.COMMIT_GPG_KEY }}" > private.key |
26 |
|
|
gpg --import private.key |
27 |
|
|
rm -f private.key |
28 |
rakinar2 |
632 |
git config --global user.name "Ar Rakin" |
29 |
|
|
git config --global user.email "[email protected]" |
30 |
rakinar2 |
631 |
git config --global user.signingkey "6AE7B08C68169452" |
31 |
|
|
git config --global commit.gpgsign true |
32 |
|
|
|
33 |
|
|
- name: Git Pull |
34 |
|
|
run: git pull --unshallow |
35 |
|
|
|
36 |
|
|
- name: Merge main with dev |
37 |
|
|
run: | |
38 |
|
|
git switch dev && git merge main -m "merge: with branch main" |
39 |
|
|
|
40 |
|
|
- name: Push |
41 |
|
|
run: git push origin dev |
42 |
|
|
|