Compare commits
1 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 7db7e6de1e |
@@ -16,6 +16,13 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
fetch-depth: 0
|
fetch-depth: 0
|
||||||
|
|
||||||
|
- name: Setup SSH Key
|
||||||
|
run: |
|
||||||
|
mkdir -p ~/.ssh
|
||||||
|
chmod 700 ~/.ssh
|
||||||
|
echo "${{ secrets.DEPLOY_KEY }}" > ~/.ssh/id_ed25519
|
||||||
|
chmod 600 ~/.ssh/id_ed25519
|
||||||
|
|
||||||
- name: Set up JDK
|
- name: Set up JDK
|
||||||
uses: actions/setup-java@v5
|
uses: actions/setup-java@v5
|
||||||
with:
|
with:
|
||||||
@@ -65,18 +72,16 @@ jobs:
|
|||||||
GITEA_TOKEN: ${{ secrets.ACCESS_TOKEN }}
|
GITEA_TOKEN: ${{ secrets.ACCESS_TOKEN }}
|
||||||
run: |
|
run: |
|
||||||
pnpm i
|
pnpm i
|
||||||
pnpm format
|
|
||||||
pnpm release
|
pnpm release
|
||||||
|
pnpm format
|
||||||
|
|
||||||
- name: Commit & Push Changes
|
- name: Commit & Push Changes
|
||||||
env:
|
|
||||||
MY_PAT_TOKEN: ${{ secrets.ACCESS_TOKEN }}
|
|
||||||
run: |
|
run: |
|
||||||
if [ -n "$(git status --porcelain)" ]; then
|
if [ -n "$(git status --porcelain)" ]; then
|
||||||
git config --global user.name "gitea-actions"
|
git config --global user.name "gitea-actions"
|
||||||
git config --global user.email "actions-user@noreply.git.demonkernel.io.vn"
|
git config --global user.email "actions-user@noreply.git.demonkernel.io.vn"
|
||||||
|
|
||||||
git remote set-url origin https://x-access-token:${MY_PAT_TOKEN}@git.demonkernel.io.vn/${{ github.repository }}.git
|
git remote set-url origin git@git.demonkernel.io.vn:${{ github.repository }}.git
|
||||||
|
|
||||||
git add .
|
git add .
|
||||||
git commit -m "chore: release [ci skip]"
|
git commit -m "chore: release [ci skip]"
|
||||||
|
|||||||
Reference in New Issue
Block a user