diff --git a/.gitea/workflows/z-docs.yml b/.gitea/workflows/z-docs.yml index 7daff01..c600866 100644 --- a/.gitea/workflows/z-docs.yml +++ b/.gitea/workflows/z-docs.yml @@ -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 \ No newline at end of file