Update .gitea/workflows/z-docs.yml
This commit is contained in:
parent
2ffa39fd57
commit
a485e46502
@ -31,12 +31,12 @@ jobs:
|
||||
with:
|
||||
node-version: 18
|
||||
|
||||
- name: Deploy from main branch
|
||||
- name: Deploy from docs-mvp branch
|
||||
run: |
|
||||
# Get latest commit from main branch
|
||||
commit_info=$(curl -s https://git.vdb.to/api/v1/repos/${{ env.TARGET_REPO }}/commits/docs-mvp)
|
||||
commit_hash=$(echo $commit_info | jq -r .sha)
|
||||
commit_date=$(echo $commit_info | jq -r .commit.committer.date)
|
||||
# Get latest commit from docs-mvp branch
|
||||
commit_info=$(curl -s https://git.vdb.to/api/v1/repos/${{ env.TARGET_REPO }}/branches/docs-mvp)
|
||||
commit_hash=$(echo $commit_info | jq -r .commit.id)
|
||||
commit_date=$(echo $commit_info | jq -r .commit.timestamp)
|
||||
|
||||
echo "Latest commit: $commit_hash"
|
||||
echo "Committed at: $commit_date"
|
||||
@ -49,4 +49,4 @@ jobs:
|
||||
npm install -g @cerc-io/laconic-registry-cli
|
||||
|
||||
# Run deployment
|
||||
./deploy-gitea.sh ${{ env.TARGET_REPO }} docs-mvp
|
||||
./deploy-gitea.sh ${{ env.TARGET_REPO }} docs-mvp
|
||||
Loading…
Reference in New Issue
Block a user